Skip to content

Commit 60487dc

Browse files
committed
Enable debug info by default when debugging the language server
1 parent 76b78a4 commit 60487dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tsserver/server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,10 @@ namespace ts.server {
968968
// Start listening
969969
ioSession.listen();
970970

971+
if (Debug.isDebugging) {
972+
Debug.enableDebugInfo();
973+
}
974+
971975
if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
972976
ts.sys.tryEnableSourceMapsForHost();
973977
}

0 commit comments

Comments
 (0)