Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
rename unknownConfigKey to invalidHelperKey
Brad Cornes <bradlc41@gmail.com>
4 years ago
4 changed files, 6 additions(+), 6 deletions(-)
M package.json -> package.json
diff --git a/package.json b/package.json
index 9b33935cb0d07ddb3bcfc6dad66c97aa34babdf2..a1634692f7d62a226b5372b12fbb0f85b322ed11 100755
--- a/package.json
+++ b/package.json
@@ -120,7 +120,7 @@           "default": "error",
           "markdownDescription": "",
           "scope": "language-overridable"
         },
-        "tailwindCSS.lint.unknownConfigKey": {
+        "tailwindCSS.lint.invalidHelperKey": {
           "type": "string",
           "enum": [
             "ignore",
M src/lsp/providers/diagnosticsProvider.ts -> src/lsp/providers/diagnosticsProvider.ts
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,12 +248,12 @@
   return diagnostics
 }
 
-function getUnknownConfigKeyDiagnostics(
+function getInvalidHelperKeyDiagnostics(
   state: State,
   document: TextDocument,
   settings: Settings
 ): Diagnostic[] {
-  let severity = settings.lint.unknownConfigKey
+  let severity = settings.lint.invalidHelperKey
   if (severity === 'ignore') return []
 
   let diagnostics: Diagnostic[] = []
@@ -391,7 +391,7 @@         ...getUtilityConflictDiagnostics(state, document, settings),
         ...getUnsupportedApplyDiagnostics(state, document, settings),
         ...getUnknownScreenDiagnostics(state, document, settings),
         ...getUnknownVariantDiagnostics(state, document, settings),
-        ...getUnknownConfigKeyDiagnostics(state, document, settings),
+        ...getInvalidHelperKeyDiagnostics(state, document, settings),
         ...getUnsupportedTailwindDirectiveDiagnostics(
           state,
           document,
M src/lsp/server.ts -> src/lsp/server.ts
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',
-    unknownConfigKey: 'error',
+    invalidHelperKey: 'error',
     unsupportedTailwindDirective: 'error',
   },
 }
M src/lsp/util/state.ts -> src/lsp/util/state.ts
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
   }
 }