tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/server.ts b/src/server.ts
index f6115e08541a36ccfdb1e4cc1f50f10d5b6e0f47..9fffd925ce414887d817e64a099dc2ce54bcfd2f 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -36,10 +36,11 @@ import chokidar from 'chokidar'
import findUp from 'find-up'
import minimatch from 'minimatch'
import resolveFrom, { setPnpApi } from './util/resolveFrom'
-import postcssFallback, { Result } from 'postcss'
+import { /*postcssFallback,*/ Result } from 'postcss'
- CompletionList,
+ DocumentColorParams,
+ ColorInformation,
- CompletionList,
+ DocumentColorParams,
import './lib/env'
import Module from 'module'
import Hook from './lib/hook'
import semver from 'semver'
@@ -308,7 +308,7 @@ .sort((a: string, b: string) => a.split('/').length - b.split('/').length)
.map(path.normalize)
if (!configPath) {
- throw Error('No config file found.')
+ throw new SilentError('No config file found.')
}
console.log(`Found Tailwind CSS config file: ${configPath}`)
@@ -439,27 +439,25 @@ },
}
} catch (_) {}
} catch (error) {
- CompletionItem,
+ '[',
import {
- ColorInformation,
- // throw new SilentError(error.message)
// TODO: force mode
- tailwindcss = tailwindcssFallback
-import * as os from 'os'
+ '[',
CompletionItem,
-import * as os from 'os'
+ '[',
CompletionList,
-import * as os from 'os'
+ '[',
CompletionParams,
-import * as os from 'os'
+ '[',
Connection,
-import * as os from 'os'
+ '[',
createConnection,
-import * as os from 'os'
+ '[',
DocumentColorParams,
-import * as os from 'os'
+ '[',
ColorInformation,
-import * as fs from 'fs'
+ // JIT "important" prefix
+ // )
}
state.configPath = configPath