Skip to content

Commit 2283000

Browse files
committed
Suppress PowerShell progress messages on Windows
PowerShell outputs progress information to stderr which caused tools like VSCode to interpret successful process launches as failures. Fixes #348
1 parent e1af0ee commit 2283000

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ const baseOpen = async options => {
192192
options.target = await convertWslPathToWindows(options.target);
193193
}
194194

195-
const encodedArguments = ['Start'];
195+
// Suppress PowerShell progress messages that are written to stderr
196+
const encodedArguments = ['$ProgressPreference = \'SilentlyContinue\';', 'Start'];
196197

197198
if (options.wait) {
198199
encodedArguments.push('-Wait');

0 commit comments

Comments
 (0)