mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 18:41:29 +00:00
Improve code compeletion for virtual methods with signatures
This commit is contained in:
parent
72d11cd173
commit
e5b91a15e6
2 changed files with 6 additions and 1 deletions
|
|
@ -382,6 +382,11 @@ const lsp::DocumentSymbol *GDScriptWorkspace::resolve_symbol(const lsp::TextDocu
|
|||
if (const ExtendGDScriptParser *parser = get_parse_result(path)) {
|
||||
|
||||
String symbol_identifier = p_symbol_name;
|
||||
Vector<String> identifier_parts = symbol_identifier.split("(");
|
||||
if (identifier_parts.size()) {
|
||||
symbol_identifier = identifier_parts[0];
|
||||
}
|
||||
|
||||
lsp::Position pos = p_doc_pos.position;
|
||||
if (symbol_identifier.empty()) {
|
||||
Vector2i offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue