You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #111478 from HolonProduction/lsp-decl-fix
LSP: Fix goto native declaration
This commit is contained in:
@@ -496,8 +496,8 @@ Array GDScriptTextDocument::find_symbols(const LSP::TextDocumentPositionParams &
|
|||||||
if (file_checker->file_exists(path)) {
|
if (file_checker->file_exists(path)) {
|
||||||
arr.push_back(location.to_json());
|
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()) {
|
} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {
|
||||||
List<const LSP::DocumentSymbol *> list;
|
List<const LSP::DocumentSymbol *> list;
|
||||||
GDScriptLanguageProtocol::get_singleton()->get_workspace()->resolve_related_symbols(p_location, list);
|
GDScriptLanguageProtocol::get_singleton()->get_workspace()->resolve_related_symbols(p_location, list);
|
||||||
|
|||||||
Reference in New Issue
Block a user