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) {