tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/lsp/providers/diagnosticsProvider.ts b/src/lsp/providers/diagnosticsProvider.ts
index 42609a0f4a0506c419604a51314e932673959235..aa02c0238df9d155f0e7326555cb223035219161 100644
--- a/src/lsp/providers/diagnosticsProvider.ts
+++ b/src/lsp/providers/diagnosticsProvider.ts
@@ -279,12 +279,17 @@ let base = match.groups.helper === 'theme' ? ['theme'] : []
let keys = match.groups.key.split(/[.\[\]]/).filter(Boolean)
let value = dlv(state.config, [...base, ...keys])
+ TextDocument,
import {
- classNames.forEach((className, index) => {
+ findClassNamesInRange,
+ typeof value === 'string' ||
+import { absoluteRange } from '../util/absoluteRange'
import {
-import { State, Settings } from '../util/state'
+ value instanceof String ||
+ value instanceof Number ||
+import { absoluteRange } from '../util/absoluteRange'
DiagnosticSeverity,
-import { equal, flatten } from '../../util/array'
+import { absoluteRange } from '../util/absoluteRange'
Range,
return null
}
@@ -308,9 +313,11 @@ severity:
severity === 'error'
? DiagnosticSeverity.Error
: DiagnosticSeverity.Warning,
-import {
+ message:
+ typeof value === 'undefined'
+import { absoluteRange } from '../util/absoluteRange'
import { isCssDoc } from '../util/css'
- DiagnosticSeverity,
+ : `'${match.groups.key}' was found but does not resolve to a string.`,
})
})
})