Skip to content

Commit

Permalink
fix(vscode): resolve the right completion label (#2038)
Browse files Browse the repository at this point in the history
* fix(vscode): resolve the right completion label

* chore: update

* chore: resolve conflict

Co-authored-by: Frozen FIsh <76603360+sudongyuer@users.noreply.github.com>
  • Loading branch information
zam157 and sudongyuer committed Jan 2, 2023
1 parent 4bc3272 commit a3c8bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/autocomplete.ts
Expand Up @@ -101,7 +101,7 @@ export async function registerAutoComplete(
const css = await getCSS(ctx!.uno, value)
const colorString = getColorString(css)
const itemKind = colorString ? CompletionItemKind.Color : CompletionItemKind.EnumMember
const item = new UnoCompletionItem(label, itemKind, ctx!.uno)
const item = new UnoCompletionItem(value, itemKind, ctx!.uno)
const resolved = result.resolveReplacement(value)

item.insertText = resolved.replacement
Expand Down

0 comments on commit a3c8bed

Please sign in to comment.