feat: Add on-typing handler for left angle

Only advertise this feature in the server capabilities when the client
supports SnippetTextEdit.

Close #11398.

Co-authored-by: unexge <unexge@gmail.com>
This commit is contained in:
Felicián Németh
2022-03-27 10:49:00 +02:00
parent 636d4880c4
commit 3bb02f2329
3 changed files with 220 additions and 6 deletions

View File

@@ -1070,6 +1070,10 @@ impl Config {
}
}
pub fn snippet_cap(&self) -> bool {
self.experimental("snippetTextEdit")
}
pub fn assist(&self) -> AssistConfig {
AssistConfig {
snippet_cap: SnippetCap::new(self.experimental("snippetTextEdit")),