Skip to content

Commit 1703572

Browse files
committed
fix: attributify prefix with variant
1 parent 18d62c5 commit 1703572

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/completions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ export default class Completions {
146146
);
147147
}
148148
if (enableVariant) {
149+
const prefix = this.processor.config('attributify.prefix');
149150
completions = completions.concat(
150-
Object.keys(this.extension.variants).map(label => attrKey(label, CompletionItemKind.Module, 1))
151+
Object.keys(this.extension.variants).map(label => attrKey(prefix ? prefix + label: label, CompletionItemKind.Module, 1))
151152
);
152153
}
153154
return completions;

0 commit comments

Comments
 (0)