LSP: harmonize spaces when auto-completing element name

Fixes #3714
This commit is contained in:
Olivier Goffart 2023-10-20 14:35:59 +02:00
parent 23a9f5aeb8
commit 3ab98a7596

View file

@ -664,7 +664,7 @@ fn add_components_to_import(
);
result.push(CompletionItem {
label: format!("{} (import from \"{}\")", exported_name.name, file),
insert_text: Some(format!("{} {{ $1 }}", exported_name.name)),
insert_text: Some(format!("{} {{$1}}", exported_name.name)),
insert_text_format: Some(InsertTextFormat::SNIPPET),
filter_text: Some(exported_name.name.clone()),
kind: Some(CompletionItemKind::CLASS),