tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
rename unknownConfigKey to invalidHelperKey
4 changed files, 7 additions(+), 7 deletions(-)
diff --git a/package.json b/package.json
index 9b33935cb0d07ddb3bcfc6dad66c97aa34babdf2..a1634692f7d62a226b5372b12fbb0f85b322ed11 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 aa02c0238df9d155f0e7326555cb223035219161..036b32c2bd3c5c4bbf45c7f74eeddeb495019247 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.unknownConfigKey
+ let severity = settings.lint.invalidHelperKey
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 118c5a3c73f54271448abeb53192bc994b42a1da..bef666c9fc13a61d43637a6f74fe7df412797e15 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 5d7e4f490486aafcac67675cdb0c1794f19f0de8..4df2d1e168fc1f84badf86058b868218444f3cbf 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
- unknownConfigKey: DiagnosticSeveritySetting
+ invalidHelperKey: DiagnosticSeveritySetting
unsupportedTailwindDirective: DiagnosticSeveritySetting
}
}