Skip to content

Commit 8abfdc5

Browse files
committed
Bypass execution policy to gather CPU load
1 parent a42cd0e commit 8abfdc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/base/node/ps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function listProcesses(rootPid: number): Promise<ProcessItem> {
129129
const execMain = path.basename(process.execPath);
130130
const script = URI.parse(require.toUrl('vs/base/node/ps-win.ps1')).fsPath;
131131
const commandLine = `${script} -ProcessName '${execMain}' -MaxSamples 3`;
132-
const cmd = spawn('powershell.exe', ['-Command', commandLine]);
132+
const cmd = spawn('powershell.exe', ['-ExecutionPolicy', 'Bypass', '-Command', commandLine]);
133133

134134
let stdout = '';
135135
let stderr = '';

0 commit comments

Comments
 (0)