3
3
4
4
import { SpawnOptions } from 'child_process' ;
5
5
import * as path from 'path' ;
6
- import { WorkspaceService } from '../../application/workspace' ;
7
- import { ProcessLogger } from '../logger' ;
8
6
import { executeWorkerFile } from './main' ;
9
7
import { EnvironmentVariables , ExecutionResult , IDisposable , ShellOptions } from './types' ;
10
8
@@ -14,8 +12,6 @@ export function shellExec(
14
12
defaultEnv ?: EnvironmentVariables ,
15
13
disposables ?: Set < IDisposable > ,
16
14
) : Promise < ExecutionResult < string > > {
17
- const processLogger = new ProcessLogger ( new WorkspaceService ( ) ) ;
18
- processLogger . logProcess ( command , undefined , options ) ;
19
15
return executeWorkerFile ( path . join ( __dirname , 'shellExecWorker.js' ) , {
20
16
command,
21
17
options,
@@ -31,8 +27,6 @@ export function plainExec(
31
27
defaultEnv ?: EnvironmentVariables ,
32
28
disposables ?: Set < IDisposable > ,
33
29
) : Promise < ExecutionResult < string > > {
34
- const processLogger = new ProcessLogger ( new WorkspaceService ( ) ) ;
35
- processLogger . logProcess ( file , args , options ) ;
36
30
return executeWorkerFile ( path . join ( __dirname , 'plainExecWorker.js' ) , {
37
31
file,
38
32
args,
0 commit comments