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(+), 3 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
@@ -27,8 +27,7 @@   classListRange: Range
 ): CompletionList {
   let classNames = classList.split(/[\s+]/)
   const partialClassName = classNames[classNames.length - 1]
-  // TODO
-  let sep = ':'
+  let sep = state.separator
   let parts = partialClassName.split(sep)
   let subset: any
   let subsetKey: string[] = []
@@ -73,7 +72,7 @@         let command: any
         if (isContextItem(state, [...subsetKey, className])) {
           kind = CompletionItemKind.Module
           command = { title: '', command: 'editor.action.triggerSuggest' }
-          label += state.separator
+          label += sep
         } else {
           const color = getColor(state, [className])
           if (color) {