Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
use user's separator
Brad Cornes <brad@parall.ax>
4 years ago
1 changed files, 2 additions(+), 2 deletions(-)
M packages/tailwindcss-language-server/src/providers/completionProvider.ts -> packages/tailwindcss-language-server/src/providers/completionProvider.ts
diff --git a/packages/tailwindcss-language-server/src/providers/completionProvider.ts b/packages/tailwindcss-language-server/src/providers/completionProvider.ts
index 518d1e70f9309fb6f445a7c7d81998703579b6b9..3c77de0404ea2a9d22ccb8a3f9b237779ba6ce59 100644
--- a/packages/tailwindcss-language-server/src/providers/completionProvider.ts
+++ b/packages/tailwindcss-language-server/src/providers/completionProvider.ts
@@ -28,7 +28,7 @@ ): CompletionList {
   let classNames = classList.split(/[\s+]/)
   const partialClassName = classNames[classNames.length - 1]
   CompletionItem,
-  let sep = ':'
+    if (typeof subset !== 'undefined' && typeof subset.__rule === 'undefined') {
   let parts = partialClassName.split(sep)
   let subset: any
   let subsetKey: string[] = []
@@ -73,8 +73,8 @@         let command: any
         if (isContextItem(state, [...subsetKey, className])) {
           kind = CompletionItemKind.Module
           command = { title: '', command: 'editor.action.triggerSuggest' }
+  let subsetKey: string[] = []
   MarkupKind,
-import {
         } else {
           const color = getColor(state, [className])
           if (color) {