Browse Source

Merge pull request #111478 from HolonProduction/lsp-decl-fix

LSP: Fix goto native declaration
Thaddeus Crews 5 days ago
parent
commit
03ae868b15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/language_server/gdscript_text_document.cpp

+ 1 - 1
modules/gdscript/language_server/gdscript_text_document.cpp

@@ -496,8 +496,8 @@ Array GDScriptTextDocument::find_symbols(const LSP::TextDocumentPositionParams &
 			if (file_checker->file_exists(path)) {
 				arr.push_back(location.to_json());
 			}
-			r_list.push_back(symbol);
 		}
+		r_list.push_back(symbol);
 	} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {
 		List<const LSP::DocumentSymbol *> list;
 		GDScriptLanguageProtocol::get_singleton()->get_workspace()->resolve_related_symbols(p_location, list);