Skip to content

Commit b90f391

Browse files
committed
Skip didChange notificaiton before completion.
- Text should be in sync after changes are made. - When using vim builtin completion (C-X C-O), vim delete the completion prefix, which causes sending wrong text to language server. Close #729.
1 parent 8eba06b commit b90f391

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/language_server_protocol.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,6 @@ impl LanguageClient {
14391439
}
14401440

14411441
pub fn textDocument_completion(&self, params: &Value) -> Fallible<Value> {
1442-
self.textDocument_didChange(params)?;
14431442
info!("Begin {}", lsp::request::Completion::METHOD);
14441443

14451444
let (languageId, filename, line, character, handle): (String, String, u64, u64, bool) =

0 commit comments

Comments
 (0)