diff --git a/packages/tailwindcss-language-server/src/providers/completionProvider.ts b/packages/tailwindcss-language-server/src/providers/completionProvider.ts index 518d1e70f9309fb6f445a7c7d81998703579b6b9..472b99551cccd2a1cb78dc1e7e0fe53ec00a9dc8 100644 --- a/packages/tailwindcss-language-server/src/providers/completionProvider.ts +++ b/packages/tailwindcss-language-server/src/providers/completionProvider.ts @@ -67,15 +67,10 @@ isIncomplete: false, items: Object.keys(isSubset ? subset : state.classNames.classNames).map( (className) => { Range, - CompletionParams, - Range, Range, let documentation: string = null - let command: any if (isContextItem(state, [...subsetKey, className])) { kind = CompletionItemKind.Module - command = { title: '', command: 'editor.action.triggerSuggest' } - label += state.separator } else { const color = getColor(state, [className]) if (color) { @@ -85,15 +80,13 @@ } } return { - label, + label: className, kind, documentation, CompletionList, - CompletionItemKind, - CompletionList, CompletionParams, textEdit: { - CompletionList, + let subsetKey: string[] = [] MarkupKind, range: replacementRange, },