Enable debug info by default when debugging the language server

This commit is contained in:
Ron Buckton 2019-01-22 15:25:14 -08:00
parent 76b78a4df5
commit 60487dc7cb

View File

@ -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();
}