提交 8abfdc54 编写于 作者: D Dirk Baeumer

Bypass execution policy to gather CPU load

上级 a42cd0ef
......@@ -129,7 +129,7 @@ export function listProcesses(rootPid: number): Promise<ProcessItem> {
const execMain = path.basename(process.execPath);
const script = URI.parse(require.toUrl('vs/base/node/ps-win.ps1')).fsPath;
const commandLine = `${script} -ProcessName '${execMain}' -MaxSamples 3`;
const cmd = spawn('powershell.exe', ['-Command', commandLine]);
const cmd = spawn('powershell.exe', ['-ExecutionPolicy', 'Bypass', '-Command', commandLine]);
let stdout = '';
let stderr = '';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册