Return back a proper resolved
value (#26406)
Follow-up of https://github.com/zed-industries/zed/pull/26300 https://github.com/zed-industries/zed/pull/26300/files#diff-a3da3181e4ab4f73aa1697d7b6dc0caa0c17b2a187fb83b076dfc0234ec91f54L16900 changed the snippets' `resolved` value but it should have not. Release Notes: - N/A
This commit is contained in:
parent
082cc6184c
commit
1f8b14f4f1
1 changed files with 2 additions and 1 deletions
|
@ -16980,7 +16980,8 @@ fn snippet_completions(
|
||||||
new_text: snippet.body.clone(),
|
new_text: snippet.body.clone(),
|
||||||
source: CompletionSource::Lsp {
|
source: CompletionSource::Lsp {
|
||||||
server_id: LanguageServerId(usize::MAX),
|
server_id: LanguageServerId(usize::MAX),
|
||||||
resolved: true,
|
// Despite usize::MAX server_id above, snippets may need to be resolved
|
||||||
|
resolved: false,
|
||||||
lsp_completion: Box::new(lsp::CompletionItem {
|
lsp_completion: Box::new(lsp::CompletionItem {
|
||||||
label: snippet.prefix.first().unwrap().clone(),
|
label: snippet.prefix.first().unwrap().clone(),
|
||||||
kind: Some(CompletionItemKind::SNIPPET),
|
kind: Some(CompletionItemKind::SNIPPET),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue