fix @tailwind completion item resolution

master
Brad Cornes 2020-04-28 00:07:07 +01:00
parent feb19371f4
commit 8ec7510e02
1 changed files with 2 additions and 1 deletions

View File

@ -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
} }