LSP: Don't use smart resolve for completion
(cherry picked from commit 8155c1f836
)
This commit is contained in:
parent
47f34e8436
commit
03168cc9d1
|
@ -229,19 +229,6 @@ Array GDScriptTextDocument::completion(const Dictionary &p_params) {
|
||||||
arr[i] = item.to_json();
|
arr[i] = item.to_json();
|
||||||
i++;
|
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;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue