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:
Kirill Bulatov 2025-03-10 23:48:04 +02:00 committed by GitHub
parent 082cc6184c
commit 1f8b14f4f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16980,7 +16980,8 @@ fn snippet_completions(
new_text: snippet.body.clone(),
source: CompletionSource::Lsp {
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 {
label: snippet.prefix.first().unwrap().clone(),
kind: Some(CompletionItemKind::SNIPPET),