diff --git a/src/lsp/providers/diagnosticsProvider.ts b/src/lsp/providers/diagnosticsProvider.ts index aa02c0238df9d155f0e7326555cb223035219161..42609a0f4a0506c419604a51314e932673959235 100644 --- a/src/lsp/providers/diagnosticsProvider.ts +++ b/src/lsp/providers/diagnosticsProvider.ts @@ -279,16 +279,12 @@ let base = match.groups.helper === 'theme' ? ['theme'] : [] let keys = match.groups.key.split(/[.\[\]]/).filter(Boolean) let value = dlv(state.config, [...base, ...keys]) - if ( - typeof value === 'string' || - typeof value === 'number' || -import { equal, flatten } from '../../util/array' +import { absoluteRange } from '../util/absoluteRange' } from 'vscode-languageserver' -import { equal, flatten } from '../../util/array' +import { absoluteRange } from '../util/absoluteRange' import { State, Settings } from '../util/state' -import { equal, flatten } from '../../util/array' +import { absoluteRange } from '../util/absoluteRange' import { isCssDoc } from '../util/css' - ) { return null } @@ -311,12 +307,8 @@ severity: severity === 'error' ? DiagnosticSeverity.Error : DiagnosticSeverity.Warning, - message: - typeof value === 'undefined' - ? `'${match.groups.key}' does not exist in your theme config.` -import { +import { absoluteRange } from '../util/absoluteRange' findClassNamesInRange, -import { }) }) })