1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #48615 from Razoric480/lsp-rename

Implement LSP didSave notification and rename request
This commit is contained in:
Rémi Verschelde
2021-08-05 00:18:31 +02:00
committed by GitHub
7 changed files with 177 additions and 2 deletions

View File

@@ -2795,6 +2795,7 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
if (base_type.class_type->has_member(p_symbol)) {
r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
r_result.location = base_type.class_type->get_member(p_symbol).get_line();
r_result.class_path = base_type.script_path;
return OK;
}
base_type = base_type.class_type->base_type;