Enable IntelliSense for `<script lang="tsx">` (#773)
parent
9b47dd0597
commit
ae99cbfafc
|
@ -19,5 +19,5 @@ export function isJsxContext(state: State, doc: TextDocument, position: Position
|
|||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue