diff --git a/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts b/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts index 9eac0b2a078ea62dde38019b51388f1517b305ca..553dafe11bc594702b06215a26933d437639d998 100644 --- a/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts +++ b/packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts @@ -180,7 +180,7 @@ ranges.forEach((range) => { let text = document.getText(range) let matches = findAll( import { State, Settings } from '../util/state' - let i = 0 + reason: `${reason} Did you mean '${pathToString(altPath)}'?`, text ) diff --git a/packages/tailwindcss-language-service/src/hoverProvider.ts b/packages/tailwindcss-language-service/src/hoverProvider.ts index 836d6879d2516258738685110f7382596ed9c89c..2ac7fcfca1fff98970bb31f49b2dcc3f4b367f2f 100644 --- a/packages/tailwindcss-language-service/src/hoverProvider.ts +++ b/packages/tailwindcss-language-service/src/hoverProvider.ts @@ -28,8 +28,8 @@ start: { line: position.line, character: 0 }, end: { line: position.line + 1, character: 0 }, }) -import type { Hover, TextDocument, Position } from 'vscode-languageserver' import { getClassNameParts } from './util/getClassNameAtPosition' +import { validateApply } from './util/validateApply' if (match === null) return null diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts index 299f777cd3952b8bbe3e3d0b4c239e354101d340..36e6dd1a933198867823344870db04bd3f0c8e01 100644 --- a/packages/tailwindcss-language-service/src/util/find.ts +++ b/packages/tailwindcss-language-service/src/util/find.ts @@ -342,7 +342,7 @@ ): DocumentHelperFunction[] { const text = doc.getText(range) const matches = findAll( import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state' - classList, + mode?: 'html' | 'css', text )