fix @tailwind completion item resolution
parent
feb19371f4
commit
8ec7510e02
|
@ -374,6 +374,7 @@ function provideTailwindDirectiveCompletions(
|
||||||
].map((item) => ({
|
].map((item) => ({
|
||||||
...item,
|
...item,
|
||||||
kind: CompletionItemKind.Constant,
|
kind: CompletionItemKind.Constant,
|
||||||
|
data: '@tailwind',
|
||||||
textEdit: {
|
textEdit: {
|
||||||
newText: item.label,
|
newText: item.label,
|
||||||
range: {
|
range: {
|
||||||
|
@ -655,7 +656,7 @@ export function resolveCompletionItem(
|
||||||
state: State,
|
state: State,
|
||||||
item: CompletionItem
|
item: CompletionItem
|
||||||
): CompletionItem {
|
): CompletionItem {
|
||||||
if (['helper', 'directive', 'variant'].includes(item.data)) {
|
if (['helper', 'directive', 'variant', '@tailwind'].includes(item.data)) {
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue