Skip to content

Commit 94f1300

Browse files
committed
wip
1 parent 9ee8b19 commit 94f1300

File tree

1 file changed

+3
-3
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+3
-3
lines changed

packages/tailwindcss-language-service/src/util/find.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ export function matchClassFunctions(text: string, fnNames: string[]): RegExpMatc
192192
}
193193

194194
export async function findClassListsInHtmlRange(
195-
// PickDeep from 'type-fest' package cannot be used here due to a circular reference issue in the package
196-
// Fixes are underway (see: https://github.com/sindresorhus/type-fest/pull/1079)
197-
state: { editor?: Pick<NonNullable<State['editor']>, 'getConfiguration'> },
195+
state: State,
198196
doc: TextDocument,
199197
type: 'html' | 'js' | 'jsx',
200198
range?: Range,
201199
): Promise<DocumentClassList[]> {
200+
if (!state.editor) return []
201+
202202
const text = getTextWithoutComments(doc, type, range)
203203

204204
const settings = (await state.editor.getConfiguration(doc.uri)).tailwindCSS

0 commit comments

Comments
 (0)