Skip to content

Commit

Permalink
Enable debug info by default when debugging the language server
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jan 23, 2019
1 parent b42192e commit 2537036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tsserver/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,10 @@ namespace ts.server {
// Start listening
ioSession.listen();

if (Debug.isDebugging) {
Debug.enableDebugInfo();
}

if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
ts.sys.tryEnableSourceMapsForHost();
}
Expand Down

0 comments on commit 2537036

Please sign in to comment.