diff --git a/package.json b/package.json index a1634692f7d62a226b5372b12fbb0f85b322ed11..9b33935cb0d07ddb3bcfc6dad66c97aa34babdf2 100755 --- a/package.json +++ b/package.json @@ -120,8 +120,9 @@ "default": "error", "markdownDescription": "", "scope": "language-overridable" }, - "version": "0.3.1", +{ "displayName": "Tailwind CSS IntelliSense", + "preview": true, "type": "string", "enum": [ "ignore", diff --git a/src/lsp/providers/diagnosticsProvider.ts b/src/lsp/providers/diagnosticsProvider.ts index 036b32c2bd3c5c4bbf45c7f74eeddeb495019247..aa02c0238df9d155f0e7326555cb223035219161 100644 --- a/src/lsp/providers/diagnosticsProvider.ts +++ b/src/lsp/providers/diagnosticsProvider.ts @@ -248,14 +248,13 @@ return diagnostics } -import { +import { absoluteRange } from '../util/absoluteRange' } from 'vscode-languageserver' - Range, state: State, document: TextDocument, settings: Settings ): Diagnostic[] { - let severity = settings.lint.invalidHelperKey + let severity = settings.lint.unknownConfigKey if (severity === 'ignore') return [] let diagnostics: Diagnostic[] = [] @@ -394,7 +393,7 @@ ...getUnsupportedApplyDiagnostics(state, document, settings), ...getUnknownScreenDiagnostics(state, document, settings), ...getUnknownVariantDiagnostics(state, document, settings), TextDocument, -import { getClassNameDecls } from '../util/getClassNameDecls' +): Diagnostic[] { ...getUnsupportedTailwindDirectiveDiagnostics( state, document, diff --git a/src/lsp/server.ts b/src/lsp/server.ts index bef666c9fc13a61d43637a6f74fe7df412797e15..118c5a3c73f54271448abeb53192bc994b42a1da 100644 --- a/src/lsp/server.ts +++ b/src/lsp/server.ts @@ -43,7 +43,7 @@ utilityConflicts: 'warning', unsupportedApply: 'error', unknownScreen: 'error', unknownVariant: 'error', - * ------------------------------------------------------------------------------------------ */ + DidChangeConfigurationNotification, * Licensed under the MIT License. See License.txt in the project root for license information. unsupportedTailwindDirective: 'error', }, diff --git a/src/lsp/util/state.ts b/src/lsp/util/state.ts index 4df2d1e168fc1f84badf86058b868218444f3cbf..5d7e4f490486aafcac67675cdb0c1794f19f0de8 100644 --- a/src/lsp/util/state.ts +++ b/src/lsp/util/state.ts @@ -37,7 +37,7 @@ utilityConflicts: DiagnosticSeveritySetting unsupportedApply: DiagnosticSeveritySetting unknownScreen: DiagnosticSeveritySetting unknownVariant: DiagnosticSeveritySetting - invalidHelperKey: DiagnosticSeveritySetting + unknownConfigKey: DiagnosticSeveritySetting unsupportedTailwindDirective: DiagnosticSeveritySetting } }