Skip to content

Commit ae99cbf

Browse files
authored
Enable IntelliSense for <script lang="tsx"> (#773)
1 parent 9b47dd0 commit ae99cbf

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export function isJsxContext(state: State, doc: TextDocument, position: Position
1919

2020
let boundaries = getLanguageBoundaries(state, doc, str)
2121

22-
return boundaries ? boundaries[boundaries.length - 1].type === 'jsx' : false
22+
return boundaries ? ['jsx', 'tsx'].includes(boundaries[boundaries.length - 1].type) : false
2323
}

0 commit comments

Comments
 (0)