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
@@ -1439,7 +1439,6 @@ impl LanguageClient {
}
pub fn textDocument_completion(&self, params: &Value) -> Fallible<Value> {
- self.textDocument_didChange(params)?;
info!("Begin {}", lsp::request::Completion::METHOD);
let (languageId, filename, line, character, handle): (String, String, u64, u64, bool) =
