profile
viewpoint

Ask questionsformat code alt + shift + f

Issue Type: <b>Bug</b>

using alt + shift + f cuse error <main>typescript server error ... i curruntly working on react typescript project. i think after vs code updated this problem occured. now i use prettier-vscode instead

VS Code version: Code 1.36.0 (0f3794b38477eea13fb47fbe15a42798e6129338, 2019-07-03T13:25:46.372Z) OS version: Windows_NT x64 10.0.16299

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>oop_rasterization: disabled_off<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_deferred_display_list: disabled_off<br>skia_renderer: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) undefined
Memory (System) 3.88GB (0.79GB free)
Screen Reader no
VM 0%

</details><details><summary>Extensions (3)</summary>

Extension Author (truncated) Version
gitlens eam 9.8.2
prettier-vscode esb 1.9.0
vscode-scss-formatter sib 1.4.1

</details> <!-- generated by issue reporter -->

microsoft/vscode

Answer questions hrkazemi

What is the error?

when i try to format the tsx file, notify show this:

error

<main> TypeScript Server Error (3.5.2) Debug Failure. False expression: Token end is child end Error: Debug Failure. False expression: Token end is child end at processChildNode (tsserver.js:110675:34) at tsserver.js:110622:21 at visitNode (tsserver.js:16634:24) at Object.forEachChild (tsserver.js:17045:24) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at tsserver.js:110622:21 at visitNode (tsserver.js:16634:24) at Object.forEachChild (tsserver.js:17024:21) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at processChildNodes (tsserver.js:110732:48) at tsserver.js:110624:21 at visitNodes (tsserver.js:16639:24) at Object.forEachChild (tsserver.js:17023:21) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at processChildNodes (tsserver.js:110732:48) at tsserver.js:110624:21 at visitNodes (tsserver.js:16639:24) at Object.forEachChild (tsserver.js:17027:21) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at tsserver.js:110622:21 at visitNode (tsserver.js:16634:24) at Object.forEachChild (tsserver.js:16832:24) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at tsserver.js:110622:21 at visitNode (tsserver.js:16634:24) at Object.forEachChild (tsserver.js:16909:24) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at processChildNodes (tsserver.js:110732:48) at tsserver.js:110624:21 at visitNodes (tsserver.js:16639:24) at Object.forEachChild (tsserver.js:16869:24) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at tsserver.js:110622:21 at visitNode (tsserver.js:16634:24) at Object.forEachChild (tsserver.js:16764:21) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at processChildNodes (tsserver.js:110732:48) at tsserver.js:110624:21 at visitNodes (tsserver.js:16639:24) at Object.forEachChild (tsserver.js:16944:21) at processNode (tsserver.js:110621:20) at processChildNode (tsserver.js:110681:21) at processChildNodes (tsserver.js:110732:48) at tsserver.js:110624:21 at visitNodes (tsserver.js:16639:24) at Object.forEachChild (tsserver.js:16871:24) at processNode (tsserver.js:110621:20) at formatSpanWorker (tsserver.js:110439:17) at tsserver.js:110420:208 at Object.getFormattingScanner (tsserver.js:109209:23) at formatSpan (tsserver.js:110420:31) at Object.formatSelection (tsserver.js:110238:20) at Object.getFormattingEditsForRange (tsserver.js:122387:34) at IOSession.Session.getFormattingEditsForRange (tsserver.js:131071:45) at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:130082:61) at tsserver.js:131665:88 at IOSession.Session.executeWithRequestId (tsserver.js:131656:28) at IOSession.Session.executeCommand (tsserver.js:131665:33) at IOSession.Session.onMessage (tsserver.js:131687:35) at Interface.<anonymous> (tsserver.js:132978:27) at Interface.emit (events.js:182:13) at Interface._onLine (readline.js:290:10) at Interface._normalWrite (readline.js:433:12) at Socket.ondata (readline.js:149:10) at Socket.emit (events.js:182:13) at addChunk (_stream_readable.js:283:12) at readableAddChunk (_stream_readable.js:264:11) at Socket.Readable.push (_stream_readable.js:219:10) at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

useful!

Related questions

the terminal process terminated with exit code #259 hot 7
XHR Failed on trying to install plugins via Visual Studio code
The terminal shell CWD &#34;/c:/User...&#34; does not exist - vscode hot 4
Insiders - We cannot connect to the Extensions Marketplace hot 3
Bad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help. hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
launch: program ''does not exist hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
dart is not recognized as internal or external command hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Git Fetch fails with Missing or invalid credentials hot 2
Virtual Space is not implemented. hot 2
Github User Rank List