@@ -200,7 +200,9 @@ function guessEditor() {
200200 // `Get-Process` on Windows
201201 try {
202202 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 ( )
204206 const processNames = Object . keys ( COMMON_EDITORS_OSX )
205207 for ( let i = 0 ; i < processNames . length ; i ++ ) {
206208 const processName = processNames [ i ]
@@ -214,6 +216,7 @@ function guessEditor() {
214216 const output = child_process
215217 . execSync (
216218 "wmic process where \"executablepath is not null\" get executablepath" ,
219+ { stdio : [ "pipe" , "pipe" , "ignore" ] } ,
217220 )
218221 . toString ( )
219222 const runningProcesses = output . split ( "\r\n" )
@@ -229,7 +232,9 @@ function guessEditor() {
229232 // x List all processes owned by you
230233 // -o comm Need only names column
231234 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" ] } )
233238 . toString ( )
234239 const processNames = Object . keys ( COMMON_EDITORS_LINUX )
235240 for ( let i = 0 ; i < processNames . length ; i ++ ) {
0 commit comments