mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
fix LSP ComplitionTriggerKind value for TriggerKind::Auto
(#9660)
This commit is contained in:
parent
ebf155d635
commit
787cc36092
@ -221,9 +221,17 @@ fn request_completion(
|
|||||||
.iter()
|
.iter()
|
||||||
.find(|&trigger| trigger_text.ends_with(trigger))
|
.find(|&trigger| trigger_text.ends_with(trigger))
|
||||||
});
|
});
|
||||||
lsp::CompletionContext {
|
|
||||||
trigger_kind: lsp::CompletionTriggerKind::TRIGGER_CHARACTER,
|
if trigger_char.is_some() {
|
||||||
trigger_character: trigger_char.cloned(),
|
lsp::CompletionContext {
|
||||||
|
trigger_kind: lsp::CompletionTriggerKind::TRIGGER_CHARACTER,
|
||||||
|
trigger_character: trigger_char.cloned(),
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lsp::CompletionContext {
|
||||||
|
trigger_kind: lsp::CompletionTriggerKind::INVOKED,
|
||||||
|
trigger_character: None,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user