@@ -200,7 +200,9 @@ function guessEditor() {
200
200
// `Get-Process` on Windows
201
201
try {
202
202
if ( process . platform === "darwin" ) {
203
- const output = child_process . execSync ( "ps x" ) . toString ( )
203
+ const output = child_process
204
+ . execSync ( "ps x" , { stdio : [ "pipe" , "pipe" , "ignore" ] } )
205
+ . toString ( )
204
206
const processNames = Object . keys ( COMMON_EDITORS_OSX )
205
207
for ( let i = 0 ; i < processNames . length ; i ++ ) {
206
208
const processName = processNames [ i ]
@@ -214,6 +216,7 @@ function guessEditor() {
214
216
const output = child_process
215
217
. execSync (
216
218
"wmic process where \"executablepath is not null\" get executablepath" ,
219
+ { stdio : [ "pipe" , "pipe" , "ignore" ] } ,
217
220
)
218
221
. toString ( )
219
222
const runningProcesses = output . split ( "\r\n" )
@@ -229,7 +232,9 @@ function guessEditor() {
229
232
// x List all processes owned by you
230
233
// -o comm Need only names column
231
234
const output = child_process
232
- . execSync ( "ps x --no-heading -o comm --sort=comm" )
235
+ . execSync (
236
+ "ps x --no-heading -o comm --sort=comm" ,
237
+ { stdio : [ "pipe" , "pipe" , "ignore" ] } )
233
238
. toString ( )
234
239
const processNames = Object . keys ( COMMON_EDITORS_LINUX )
235
240
for ( let i = 0 ; i < processNames . length ; i ++ ) {
0 commit comments