提交 2d7a7abb 编写于 作者: R Rachel Macfarlane

Handle spaces in portable install path on Linux for process explorer calculations, fixes #53166

上级 096d627d
......@@ -206,7 +206,8 @@ export function listProcesses(rootPid: number): Promise<ProcessItem> {
// The cpu usage value reported on Linux is the average over the process lifetime,
// recalculate the usage over a one second interval
let cmd = URI.parse(require.toUrl('vs/base/node/cpuUsage.sh')).fsPath;
// JSON.stringify is needed to escape spaces, https://github.com/nodejs/node/issues/6803
let cmd = JSON.stringify(URI.parse(require.toUrl('vs/base/node/cpuUsage.sh')).fsPath);
cmd += ' ' + pids.join(' ');
exec(cmd, {}, (err, stdout, stderr) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册