Skip to content

Commit

Permalink
LSP: Don't use smart resolve for completion
Browse files Browse the repository at this point in the history
  • Loading branch information
HolonProduction committed Sep 7, 2024
1 parent 5675c76 commit 8155c1f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions modules/gdscript/language_server/gdscript_text_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8155c1f

Please sign in to comment.