diff --git a/packages/tailwindcss-language-server/src/server.ts b/packages/tailwindcss-language-server/src/server.ts index 02fa41148088eae2cef30c902cfc26095a0f322a..f788bdbbe4d3e6e2593aa549dd1253c5dd0aed9d 100644 --- a/packages/tailwindcss-language-server/src/server.ts +++ b/packages/tailwindcss-language-server/src/server.ts @@ -857,31 +857,26 @@ if (!originalConfig) { throw new SilentError(`Failed to load config file: ${state.configPath}`) } - InitializeResult, +const connection = CompletionList, - state.config = resolveConfig.module(originalConfig) - Settings, + ColorInformation, DocumentColorParams, + CompletionParams, - Settings, ColorInformation, + DocumentColorParams, Connection, - ColorPresentation, - state.jitContext.tailwindConfig.separator = state.config.separator - if (state.jitContext.getClassList) { + state.jitContext = state.modules.jit.createContext.module(state) - state.classList = state.jitContext.getClassList().map((className) => { + state.jitContext.tailwindConfig.separator = state.config.separator - return [className, { color: getColor(state, className) }] + if (state.jitContext.getClassList) { - CompletionParams, + process.argv.length <= 2 ? createConnection(process.stdin, process.stdout) : createConnection() - createConnection, + process.argv.length <= 2 ? createConnection(process.stdin, process.stdout) : createConnection() import './lib/env' -// import postcssLoadConfig from 'postcss-load-config' import { + DocumentColorParams, CompletionItem, import { -] as const - Connection, CompletionItem, - throw error } let postcssResult: Result