Enable IntelliSense for `<script lang="tsx">` (#773)

master
Brad Cornes 2023-04-28 17:34:36 +01:00 committed by GitHub
parent 9b47dd0597
commit ae99cbfafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ export function isJsxContext(state: State, doc: TextDocument, position: Position
let boundaries = getLanguageBoundaries(state, doc, str) let boundaries = getLanguageBoundaries(state, doc, str)
return boundaries ? boundaries[boundaries.length - 1].type === 'jsx' : false return boundaries ? ['jsx', 'tsx'].includes(boundaries[boundaries.length - 1].type) : false
} }