#Need help debugging the language server in running VS Code

1 messages · Page 1 of 1 (latest)

coral crystal
#

I have an application that uses a fairly complicated bit of generated TypeScript. Between different versions of TypeScript, I get failures when trying to get code completions from the formatter (Token end is child end), but I haven't the slightest idea how to debug the running language server. Looking at the instructions at https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code seems mostly focused on developing TypeScript itself. I've followed the directions there but I'm not at all sure how to debug the installed TypeSript language server that VS Code is running. I'm hoping that if I can set a breakpoint here that I can see the code that it's choking on.

If there is a more straightforward way to debug issues with the formatter, I'm open to suggestions too!

GitHub

TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - microsoft/TypeScript

GitHub

TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - TypeScript/formatting.ts at e18c93511b5e8b02597b449f5fc84f9390b5c33f · microsoft/TypeScript

muted bridgeBOT
#
Debug.assert(tokenInfo.token.end === child.end, "Token end is child end");