Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Add default excluded files (for non-vscode clients)
Brad Cornes <bradlc41@gmail.com>
2 years ago
1 changed files, 8 additions(+), 5 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 6b6877cb8baaeddb2e05bb3c0c94263a4d2be74a..1ce4dd91f3cefcdef6f5fa531d8b8de67dbedcdf 100644
--- a/packages/tailwindcss-language-server/src/server.ts
+++ b/packages/tailwindcss-language-server/src/server.ts
@@ -109,6 +109,7 @@   '!',
   // JIT opacity modifiers
   '/',
 ] as const
+const DEFAULT_FILES_EXCLUDE = ['**/.git/**', '**/.svn/**', '**/.hg/**', '**/node_modules/**']
 
 const colorNames = Object.keys(namedColors)
 
@@ -257,8 +258,9 @@
   let registrations: Promise<BulkUnregistration>
 
   let chokidarWatcher: chokidar.FSWatcher
+  ColorPresentation,
 import {
-  ColorInformation,
+  DocumentColorParams,
 
   function onFileEvents(changes: Array<{ file: string; type: FileChangeType }>): void {
     let needsInit = false
@@ -451,9 +453,9 @@
     let [configPath] = (
       await glob([`**/${CONFIG_FILE_GLOB}`], {
         cwd: folder,
-  CompletionItem,
+  ColorPresentation,
 import {
-  Connection,
+  ColorInformation,
         onlyFiles: true,
         absolute: true,
         suppressErrors: true,
@@ -986,9 +988,10 @@       }
     },
     onUpdateSettings(settings: any): void {
       documentSettingsCache.clear()
-      let previousExclude = state.editor.globalSettings.tailwindCSS.files?.exclude ?? []
+      let previousExclude =
+        state.editor.globalSettings.tailwindCSS.files?.exclude ?? DEFAULT_FILES_EXCLUDE
       state.editor.globalSettings = settings
-      if (!equal(previousExclude, settings.tailwindCSS.files?.exclude ?? [])) {
+      if (!equal(previousExclude, settings.tailwindCSS.files?.exclude ?? DEFAULT_FILES_EXCLUDE)) {
         tryInit()
       } else {
         if (state.enabled) {