mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
Avoid treating snippet completions' details as their variable types
This commit is contained in:
parent
b76194db97
commit
dd3f6ff4ca
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ impl LspAdapter for RustLspAdapter {
|
|||
});
|
||||
}
|
||||
Some(lsp::CompletionItemKind::CONSTANT | lsp::CompletionItemKind::VARIABLE)
|
||||
if completion.detail.is_some() =>
|
||||
if completion.detail.is_some()
|
||||
&& completion.insert_text_format != Some(lsp::InsertTextFormat::SNIPPET) =>
|
||||
{
|
||||
let detail = completion.detail.as_ref().unwrap();
|
||||
let name = &completion.label;
|
||||
|
|
Loading…
Reference in a new issue