tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
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) {