We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<script lang="tsx">
1 parent 9b47dd0 commit ae99cbfCopy full SHA for ae99cbf
packages/tailwindcss-language-service/src/util/js.ts
@@ -19,5 +19,5 @@ export function isJsxContext(state: State, doc: TextDocument, position: Position
19
20
let boundaries = getLanguageBoundaries(state, doc, str)
21
22
- return boundaries ? boundaries[boundaries.length - 1].type === 'jsx' : false
+ return boundaries ? ['jsx', 'tsx'].includes(boundaries[boundaries.length - 1].type) : false
23
}
0 commit comments