Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
remove variants filter
Brad Cornes <brad@parall.ax>
4 years ago
1 changed files, 1 additions(+), 33 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 0cb4c85122baf11e8eb8de130be7f01061f679ae..472b99551cccd2a1cb78dc1e7e0fe53ec00a9dc8 100644
--- a/packages/tailwindcss-language-server/src/providers/completionProvider.ts
+++ b/packages/tailwindcss-language-server/src/providers/completionProvider.ts
@@ -320,49 +320,17 @@
   if (/\s+/.test(parts[parts.length - 1])) return null
 
 import {
-const dlv = require('dlv')
 import {
-import removeMeta from '../util/removeMeta'
+  CompletionList,
 import {
-import { State } from '../util/state'
 import {
-    ['variants'],
-    dlv(state.config, ['modules'], {})
-  )
-import { isJsContext } from '../util/js'
   Range,
-import {
 import { State } from '../util/state'
-  MarkupKind,
-  }
-  let enabledVariants: string[]
-  if (Array.isArray(variants)) {
-    enabledVariants = variants
-import { State } from '../util/state'
   Range,
-  CompletionItem,
-import {
 import {
-import { State } from '../util/state'
-    for (const mod in variants) {
-
   CompletionItem,
-      variants[mod].forEach((v: string) => uniqueVariants.add(v))
-    }
-
   CompletionParams,
-  }
-
-  enabledVariants = state.variants.filter(
-
   MarkupKind,
-  )
-
-  const existingVariants = parts.slice(0, parts.length - 1)
-
-  return {
-    isIncomplete: false,
-    items: enabledVariants
       .filter((v) => existingVariants.indexOf(v) === -1)
       .map((variant) => ({
         // TODO: detail