summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
diff options
context:
space:
mode:
authorHolonProduction <holonproduction@gmail.com>2024-09-07 16:23:02 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-17 08:57:46 +0200
commit03168cc9d1dcf6f62d1517d9f15adb7de3a41c21 (patch)
treeeae667d171e6dca9b3e0be3661ea8aa88d7ee609 /modules/gdscript
parent47f34e84366d78126af76a0501586bdba34f373d (diff)
downloadredot-engine-03168cc9d1dcf6f62d1517d9f15adb7de3a41c21.tar.gz
LSP: Don't use smart resolve for completion
(cherry picked from commit 8155c1f836806f24ec055c7d3c109cee2c993110)
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/language_server/gdscript_text_document.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp
index 2224bb0040..aed544f975 100644
--- a/modules/gdscript/language_server/gdscript_text_document.cpp
+++ b/modules/gdscript/language_server/gdscript_text_document.cpp
@@ -229,19 +229,6 @@ Array GDScriptTextDocument::completion(const Dictionary &p_params) {
arr[i] = item.to_json();
i++;
}
- } else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {
- arr = native_member_completions.duplicate();
-
- for (KeyValue<String, ExtendGDScriptParser *> &E : GDScriptLanguageProtocol::get_singleton()->get_workspace()->scripts) {
- ExtendGDScriptParser *scr = E.value;
- const Array &items = scr->get_member_completions();
-
- const int start_size = arr.size();
- arr.resize(start_size + items.size());
- for (int i = start_size; i < arr.size(); i++) {
- arr[i] = items[i - start_size];
- }
- }
}
return arr;
}