mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Merge pull request #115672 from HolonProduction/lsp/kate2
LSP: Handle clients that do not support `CompletionContext`
This commit is contained in:
@@ -1440,7 +1440,7 @@ struct CompletionContext {
|
||||
/**
|
||||
* How the completion was triggered.
|
||||
*/
|
||||
int triggerKind = CompletionTriggerKind::TriggerCharacter;
|
||||
int triggerKind = CompletionTriggerKind::Invoked;
|
||||
|
||||
/**
|
||||
* The trigger character (a single character) that has trigger code complete.
|
||||
@@ -1463,7 +1463,10 @@ struct CompletionParams : public TextDocumentPositionParams {
|
||||
|
||||
void load(const Dictionary &p_params) {
|
||||
TextDocumentPositionParams::load(p_params);
|
||||
context.load(p_params["context"]);
|
||||
|
||||
if (p_params.has("context")) {
|
||||
context.load(p_params["context"]);
|
||||
}
|
||||
}
|
||||
|
||||
Dictionary to_json() {
|
||||
|
||||
Reference in New Issue
Block a user