mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
fix: tsserver no longer crashes when log path includes spaces (#212752)
This commit is contained in:
@@ -234,7 +234,7 @@ export class TypeScriptServerSpawner {
|
||||
tsServerLog = { type: 'file', uri: logFilePath };
|
||||
|
||||
args.push('--logVerbosity', TsServerLogLevel.toString(configuration.tsServerLogLevel));
|
||||
args.push('--logFile', logFilePath.fsPath);
|
||||
args.push('--logFile', `"${logFilePath.fsPath}"`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -242,7 +242,7 @@ export class TypeScriptServerSpawner {
|
||||
if (configuration.enableTsServerTracing && !isWeb()) {
|
||||
tsServerTraceDirectory = this._logDirectoryProvider.getNewLogDirectory();
|
||||
if (tsServerTraceDirectory) {
|
||||
args.push('--traceDirectory', tsServerTraceDirectory.fsPath);
|
||||
args.push('--traceDirectory', `"${tsServerTraceDirectory.fsPath}"`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user