summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-08-05 00:18:31 +0200
committerGitHub <noreply@github.com>2021-08-05 00:18:31 +0200
commit73b1f5ac795b6c8d02931b30c84a5f94eb3752d7 (patch)
tree3e841059d92d73cc46191af359531ebb2bccc432 /modules/gdscript/gdscript_editor.cpp
parent85186bc0c5f8ad135168018bb90ac0dd4e834500 (diff)
parent7c5335081cbdb6a3dbe2f24855f42d06e8a446fa (diff)
downloadredot-engine-73b1f5ac795b6c8d02931b30c84a5f94eb3752d7.tar.gz
Merge pull request #48615 from Razoric480/lsp-rename
Implement LSP didSave notification and rename request
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r--modules/gdscript/gdscript_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 2a93bb620b..2e570d5a5b 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -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;