mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Use native path for trace directory (#173856)
Fixes #173854 On windows, we need to pass in the `c:\` style path. The normal `/` path causes TS Server to crash
This commit is contained in:
@@ -153,7 +153,7 @@ export class TypeScriptServerSpawner {
|
||||
|
||||
if (configuration.enableTsServerTracing) {
|
||||
if (tsServerTraceDirectory) {
|
||||
this._logger.info(`<${kind}> Trace directory: ${tsServerTraceDirectory}`);
|
||||
this._logger.info(`<${kind}> Trace directory: ${tsServerTraceDirectory.fsPath}`);
|
||||
} else {
|
||||
this._logger.error(`<${kind}> Could not create trace directory`);
|
||||
}
|
||||
@@ -240,7 +240,7 @@ export class TypeScriptServerSpawner {
|
||||
if (configuration.enableTsServerTracing && !isWeb()) {
|
||||
tsServerTraceDirectory = this._logDirectoryProvider.getNewLogDirectory();
|
||||
if (tsServerTraceDirectory) {
|
||||
args.push('--traceDirectory', tsServerTraceDirectory.path);
|
||||
args.push('--traceDirectory', tsServerTraceDirectory.fsPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user