File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
src/client/common/process/worker Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License.
3
3
4
- import { EnvironmentVariables , ShellOptions } from './types' ;
4
+ import * as path from 'path' ;
5
+ import { executeWorkerFile } from './main' ;
6
+ import { EnvironmentVariables , ExecutionResult , ShellOptions } from './types' ;
5
7
6
- export function shellExec ( _command : string , _options : ShellOptions , _defaultEnv ?: EnvironmentVariables ) : void {
7
- // const processLogger = new ProcessLogger(new WorkspaceService());
8
- // processLogger.logProcess(command, undefined, options);
9
- // return executeWorkerFile(path.join(__dirname, 'shellExecWorker.js'), {
10
- // command,
11
- // options,
12
- // defaultEnv,
13
- // disposables,
14
- // });
8
+ export function shellExec (
9
+ command : string ,
10
+ options : ShellOptions ,
11
+ defaultEnv ?: EnvironmentVariables ,
12
+ ) : Promise < ExecutionResult < string > > {
13
+ return executeWorkerFile ( path . join ( __dirname , 'shellExecWorker.js' ) , {
14
+ command,
15
+ options,
16
+ defaultEnv,
17
+ } ) ;
15
18
}
You can’t perform that action at this time.
0 commit comments