mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Enable debug info by default when debugging the language server
This commit is contained in:
parent
76b78a4df5
commit
60487dc7cb
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user