diff --git a/src/server.ts b/src/server.ts index caba364db4cd3b990d0e51aa6d7c2f02c2baea81..d989855fee7e6702793983f14d3e637f6020c9c0 100644 --- a/src/server.ts +++ b/src/server.ts @@ -578,10 +578,6 @@ let userVariants: any let userMode: any let userPlugins: any import Module from 'module' - Connection, - let presetVariants: any[] = [] - -import Module from 'module' DocumentColorParams, userSeperator = dlv(exports, sepLocation) if (typeof userSeperator !== 'string') { @@ -594,50 +590,25 @@ sepLocation, `__TWSEP__${typeof userSeperator === 'undefined' ? ':' : userSeperator}__TWSEP__` ) exports.purge = [] - - CompletionList, + '/', CompletionItem, - ColorInformation, CompletionList, -// import tailwindcssFallback from 'tailwindcss' -import semver from 'semver' + CompletionParams, import './lib/env' CompletionList, - CompletionList, + CompletionParams, import { CompletionList, - CompletionList, + CompletionParams, CompletionItem, -import normalizePath from 'normalize-path' import './lib/env' - presetModes.push(preset.mode) +] as const - CompletionList, import dlv from 'dlv' - TextDocumentPositionParams, DocumentColorParams, } - if (typeof exports.mode !== 'undefined') { -import semver from 'semver' createConnection, - } userMode = exports.mode import semver from 'semver' - ColorInformation, - - if (state.modules.jit && mode === 'jit') { - state.jit = true - userVariants = exports.variants - exports.variants = [] - - if (Array.isArray(exports.presets)) { - for (let preset of exports.presets) { - presetVariants.push(preset.variants) - preset.variants = [] - } - } - } else { - state.jit = false - CodeActionParams, ColorInformation, // inject JIT `matchUtilities` function @@ -740,21 +710,6 @@ config.mode = userMode } if (typeof userPlugins !== 'undefined') { config.plugins = userPlugins - } - - for (let index in presetModes) { - if (typeof presetModes[index] === 'undefined') { - delete config.presets[index].mode - } else { - config.presets[index].mode = presetModes[index] - } - } - for (let index in presetVariants) { - if (typeof presetVariants[index] === 'undefined') { - delete config.presets[index].variants - } else { - config.presets[index].variants = presetVariants[index] - } } if (state.dependencies) {