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 0f2016a commit 0bacf61Copy full SHA for 0bacf61
src/language-service.ts
@@ -80,6 +80,15 @@ const baseSort: NonNullable<MatchSorterOptions<CompletionToken>['baseSort']> = (
80
return -1
81
}
82
83
+ // Sort interpolated values last
84
+ if (a.value.endsWith('-') && !b.value.endsWith('-')) {
85
+ return 1
86
+ }
87
+
88
+ if (!a.value.endsWith('-') && b.value.endsWith('-')) {
89
+ return -1
90
91
92
return collator.compare(a.label, b.label)
93
94
src/twind.ts
@@ -601,7 +601,6 @@ export class Twind {
601
prefix,
602
createCompletionToken(prefix, {
603
raw: directive,
604
- label: directive,
605
interpolation: value as CompletionToken['interpolation'],
606
}),
607
)
0 commit comments