We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f78f19 + 004acc4 commit b7ca396Copy full SHA for b7ca396
server/src/modes/template/services/htmlCompletion.ts
@@ -168,12 +168,14 @@ export function doComplete(
168
if ((filterPrefix === ':' && codeSnippet[0] === ':') || (filterPrefix === '@' && codeSnippet[0] === '@')) {
169
codeSnippet = codeSnippet.slice(1);
170
}
171
+ const trimedName = attribute.replace(/^(?::|@)/, '');
172
result.items.push({
173
label: attribute,
174
kind: type === 'event' ? CompletionItemKind.Function : CompletionItemKind.Value,
175
textEdit: TextEdit.replace(range, codeSnippet),
176
insertTextFormat: InsertTextFormat.Snippet,
- sortText: priority + attribute,
177
+ sortText: priority + trimedName,
178
+ filterText: trimedName,
179
documentation: toMarkupContent(documentation)
180
});
181
0 commit comments