We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aaefe1 commit 8f75353Copy full SHA for 8f75353
packages/language-server/src/plugins/css/CSSPlugin.ts
@@ -202,12 +202,9 @@ export class CSSPlugin
202
const additionalItems: CompletionItem[] = this.globalVars
203
.getGlobalVars()
204
.map((globalVar) => ({
205
- label: globalVar.name,
+ label: `var(${globalVar.name})`,
206
+ sortText: `-`,
207
detail: `${globalVar.filename}\n\n${globalVar.name}: ${globalVar.value}`,
- textEdit: value.textEdit && {
208
- ...value.textEdit,
209
- newText: `var(${globalVar.name})`
210
- },
211
kind: CompletionItemKind.Value
212
}));
213
return [...items, ...additionalItems];
0 commit comments