Use originating language server to resolve additional completion edits

This commit is contained in:
Julia 2023-08-15 16:34:15 -04:00
parent 7a67ec5743
commit 40ce099780
6 changed files with 10 additions and 4 deletions

View file

@ -1338,7 +1338,7 @@ impl LspCommand for GetCompletions {
completions: Option<lsp::CompletionResponse>,
_: ModelHandle<Project>,
buffer: ModelHandle<Buffer>,
_: LanguageServerId,
server_id: LanguageServerId,
cx: AsyncAppContext,
) -> Result<Vec<Completion>> {
let completions = if let Some(completions) = completions {
@ -1425,6 +1425,7 @@ impl LspCommand for GetCompletions {
lsp_completion.filter_text.as_deref(),
)
}),
server_id,
lsp_completion,
}
})