Closed
Description
Likely to be #21815
Likely to be #46946
let x = <div>
/*$*/</div >
Request quick info on the <
.
Expected I dunno, probably nothing!
Actual
Failure. False expression: `JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`
Error: Debug Failure. False expression: `JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`
at findRightmostChildNodeWithTokens ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124512:26)
at find ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124486:29)
at findPrecedingToken ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124436:22)
at nodeContainsPosition ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124371:37)
at [USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124328:21
at Object.binarySearchKey ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:1187:21)
at _loop_1 ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124303:24)
at getTokenAtPositionWorker ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124353:27)
at getTouchingToken ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124288:16)
at Object.getTouchingPropertyName ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:124280:16)
at Object.getQuickInfoAtPosition ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:160763:27)
at IOSession.Session.getQuickInfoWorker ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:172179:62)
at Session.handlers.ts.Map.ts.getEntries._a.<computed> ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:171070:61)
at [USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:172931:88
at IOSession.Session.executeWithRequestId ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:172922:28)
at IOSession.Session.executeCommand ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:172931:33)
at IOSession.Session.onMessage ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:172957:35)
at Interface.<anonymous> ([USERDIR]\.vscode-insiders\extensions\ms-vscode.vscode-typescript-next-4.6.20220112\node_modules\typescript\lib\tsserver.js:175562:31)
at Interface.emit (events.js:315:20)
at Interface._onLine (readline.js:337:10)
at Interface._normalWrite (readline.js:482:12)
at Socket.ondata (readline.js:194:10)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
Fourslash test
// @Filename: foo.tsx
////let x = <div>
//// /*$*/</div >
goto.marker("$");
verify.not.quickInfoExists();