@@ -22,7 +22,6 @@ import {
2222import { logProcess } from './logger.node' ;
2323import { noop } from '../utils/misc' ;
2424import { dispose } from '../utils/lifecycle' ;
25- import { fileToCommandArgument } from '../helpers' ;
2625
2726export class BufferDecoder implements IBufferDecoder {
2827 public decode ( buffers : Buffer [ ] ) : string {
@@ -81,7 +80,7 @@ export class ProcessService implements IProcessService {
8180
8281 public execObservable ( file : string , args : string [ ] , options : SpawnOptions = { } ) : ObservableExecutionResult < string > {
8382 const spawnOptions = this . getDefaultOptions ( options ) ;
84- const proc = spawn ( fileToCommandArgument ( file ) , args , spawnOptions ) ;
83+ const proc = spawn ( file , args , spawnOptions ) ;
8584 let procExited = false ;
8685 logger . ci ( `Exec observable ${ file } , ${ args . join ( ' ' ) } ` ) ;
8786 const disposables : IDisposable [ ] = [ ] ;
@@ -156,7 +155,7 @@ export class ProcessService implements IProcessService {
156155 }
157156 public exec ( file : string , args : string [ ] , options : SpawnOptions = { } ) : Promise < ExecutionResult < string > > {
158157 const spawnOptions = this . getDefaultOptions ( options ) ;
159- const proc = spawn ( fileToCommandArgument ( file ) , args , spawnOptions ) ;
158+ const proc = spawn ( file , args , spawnOptions ) ;
160159 const deferred = createDeferred < ExecutionResult < string > > ( ) ;
161160 const disposable : IDisposable = {
162161 dispose : ( ) => {
0 commit comments