diff --git a/lib/solargraph/source_map.rb b/lib/solargraph/source_map.rb index ad5162837..a3930e15d 100644 --- a/lib/solargraph/source_map.rb +++ b/lib/solargraph/source_map.rb @@ -77,7 +77,8 @@ def document_symbols # @return [Array] def query_symbols query return document_symbols if query && query.empty? - document_symbols.select{ |pin| fuzzy_string_match(pin.path, query) || fuzzy_string_match(pin.name, query) } + document_symbols.select{ |pin| pin.name == query } + #document_symbols.select{ |pin| fuzzy_string_match(pin.path, query) || fuzzy_string_match(pin.name, query) } end # @param position [Position]