Skip to content

Commit 964a9ec

Browse files
committed
Merge pull request godotengine#96684 from HolonProduction/that-was-a-bit-too-smart
LSP: Don't use smart resolve for completion
2 parents 6311dd2 + 8155c1f commit 964a9ec

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

modules/gdscript/language_server/gdscript_text_document.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,6 @@ Array GDScriptTextDocument::completion(const Dictionary &p_params) {
229229
arr[i] = item.to_json();
230230
i++;
231231
}
232-
} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {
233-
arr = native_member_completions.duplicate();
234-
235-
for (KeyValue<String, ExtendGDScriptParser *> &E : GDScriptLanguageProtocol::get_singleton()->get_workspace()->scripts) {
236-
ExtendGDScriptParser *scr = E.value;
237-
const Array &items = scr->get_member_completions();
238-
239-
const int start_size = arr.size();
240-
arr.resize(start_size + items.size());
241-
for (int i = start_size; i < arr.size(); i++) {
242-
arr[i] = items[i - start_size];
243-
}
244-
}
245232
}
246233
return arr;
247234
}

0 commit comments

Comments
 (0)