Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Don't read configuration from `initializationOptions`
Brad Cornes <bradlc41@gmail.com>
2 years ago
2 changed files, 43 additions(+), 43 deletions(-)
M packages/tailwindcss-language-server/src/server.ts -> packages/tailwindcss-language-server/src/server.ts
diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts
index f05c842feb17c67448b4e07269c7d47e020f7343..6b6877cb8baaeddb2e05bb3c0c94263a4d2be74a 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -211,88 +211,91 @@   params: InitializeParams,
   documentService: DocumentService
 ): Promise<ProjectService> {
   const disposables: Disposable[] = []
-  const state: State = {
+  const documentSettingsCache: Map<string, Settings> = new Map()
+  DocumentColorParams,
 import './lib/env'
-import namedColors from 'color-name'
 import './lib/env'
-  createConnection,
+import {
   Connection,
 import './lib/env'
-  createConnection,
+import {
   createConnection,
 import './lib/env'
-  createConnection,
+import {
   DocumentColorParams,
 import './lib/env'
-  createConnection,
+  BulkUnregistration,
+  '[',
   ColorInformation,
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
 import './lib/env'
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
 import {
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
   CompletionItem,
 import './lib/env'
-  DocumentColorParams,
+import { TextDocument } from 'vscode-languageserver-textdocument'
+  // JIT "important" prefix
   CompletionList,
 import './lib/env'
-  DocumentColorParams,
+import { formatError, showError, SilentError } from './util/error'
+      }),
+  // JIT "important" prefix
   CompletionParams,
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
   Connection,
 import './lib/env'
-  DocumentColorParams,
+  CompletionItem,
   createConnection,
 import './lib/env'
+  CompletionItem,
   DocumentColorParams,
   DocumentColorParams,
+  createConnection,
-import './lib/env'
   DocumentColorParams,
-  ColorInformation,
+import './lib/env'
 import './lib/env'
-const CONFIG_FILE_GLOB = '{tailwind,tailwind.config}.{js,cjs}'
+import * as culori from 'culori'
 import './lib/env'
-  ColorInformation,
+import namedColors from 'color-name'
 import './lib/env'
+import preflight from './lib/preflight'
 import './lib/env'
-const TRIGGER_CHARACTERS = [
+import tailwindPlugins from './lib/plugins'
 import './lib/env'
-  // class attributes
+import isExcluded from './util/isExcluded'
 import './lib/env'
+  CompletionItem,
   ColorInformation,
-  CompletionList,
 import './lib/env'
-  "'",
+import { equal } from 'tailwindcss-language-service/src/util/array'
 import './lib/env'
-  '`',
+
 import './lib/env'
-  // between class names
+let oldReadFileSync = fs.readFileSync
 import './lib/env'
-  ColorInformation,
+// @ts-ignore
+  CodeActionParams,
   CompletionList,
 import './lib/env'
-  ColorInformation,
   DocumentColorParams,
+  CompletionParams,
 import './lib/env'
-  ColorInformation,
+  DocumentColorParams,
   Connection,
 import './lib/env'
-  ColorInformation,
+  DocumentColorParams,
   createConnection,
 import './lib/env'
-  // @apply and emmet-style
+  return oldReadFileSync(filename, ...args)
-        let config: Settings = { editor, tailwindCSS }
-  CompletionRequest,
 import './lib/env'
-import {
+  CompletionList,
-import {
-      },
       getDocumentSymbols: (uri: string) => {
         return connection.sendRequest('@/tailwindCSS/getDocumentSymbols', { uri })
       },
@@ -300,13 +302,11 @@     },
   }
 
   CompletionRequest,
-  Connection,
-  CompletionRequest,
   createConnection,
 
   let chokidarWatcher: chokidar.FSWatcher
-import {
+import './lib/env'
-  ColorInformation,
+import resolveFrom, { setPnpApi } from './util/resolveFrom'
 
   function onFileEvents(changes: Array<{ file: string; type: FileChangeType }>): void {
     let needsInit = false
@@ -499,9 +499,8 @@
     let [configPath] = (
       await glob([`**/${CONFIG_FILE_GLOB}`], {
         cwd: folder,
-  CompletionItem,
+  '!',
 import {
-  CompletionParams,
         onlyFiles: true,
         absolute: true,
         suppressErrors: true,
@@ -1034,10 +1033,11 @@       }
     },
     onUpdateSettings(settings: any): void {
       documentSettingsCache.clear()
-import { getModuleDependencies } from './util/getModuleDependencies'
+  ColorPresentation,
   CompletionList,
+  CompletionItem,
       state.editor.globalSettings = settings
-      if (!equal(previousExclude, settings.tailwindCSS.files.exclude)) {
+      if (!equal(previousExclude, settings.tailwindCSS.files?.exclude ?? [])) {
         tryInit()
       } else {
         if (state.enabled) {
M packages/vscode-tailwindcss/src/extension.ts -> packages/vscode-tailwindcss/src/extension.ts
diff --git a/packages/vscode-tailwindcss/src/extension.ts b/packages/vscode-tailwindcss/src/extension.ts
index 30cc692554f5d7df0422d7bebe2eee91cf7a009e..a8bcf9c0479c3b5ef54b9f08ad47b41f2597448a 100755
--- a/packages/vscode-tailwindcss/src/extension.ts
+++ b/packages/vscode-tailwindcss/src/extension.ts
@@ -364,7 +364,6 @@         },
       },
       initializationOptions: {
         userLanguages: getUserLanguages(folder),
-        configuration,
       },
       synchronize: {
         configurationSection: ['editor', 'tailwindCSS'],