@@ -1180,29 +1180,30 @@ class EideTaskProvider implements vscode.TaskProvider {
11801180 public static TASK_TYPE_MSYS = 'eide.msys' ;
11811181
11821182 provideTasks ( token : vscode . CancellationToken ) : vscode . ProviderResult < vscode . Task [ ] > {
1183- return [
1184- new vscode . Task ( { type : EideTaskProvider . TASK_TYPE_MSYS } , vscode . TaskScope . Workspace , 'msys' , EideTaskProvider . TASK_TYPE_MSYS )
1185- ] ;
1183+ return undefined ;
11861184 }
11871185
1188- resolveTask ( task : vscode . Task , token : vscode . CancellationToken ) : vscode . ProviderResult < vscode . Task > {
1186+ resolveTask ( task_ : vscode . Task , token : vscode . CancellationToken ) : vscode . ProviderResult < vscode . Task > {
11891187
11901188 const workspaceManager = WorkspaceManager . getInstance ( ) ;
11911189
1192- if ( task . definition . type == EideTaskProvider . TASK_TYPE_MSYS ) {
1190+ if ( task_ . definition . type == EideTaskProvider . TASK_TYPE_MSYS ) {
11931191
1194- const definition : EideShellTaskDef = < any > task . definition ;
1192+ const definition : EideShellTaskDef = < any > task_ . definition ;
11951193
1196- task . name = definition . name || task . name ;
1194+ const task = new vscode . Task ( definition , vscode . TaskScope . Workspace ,
1195+ definition . name , EideTaskProvider . TASK_TYPE_MSYS , definition . problemMatchers ) ;
11971196
1198- const shellcommand = platform . osType ( ) == 'win32' ? `" ${ definition . command } "` : definition . command ;
1197+ const shellcommand = definition . command ;
11991198 task . execution = new vscode . ShellExecution ( shellcommand , {
12001199 executable : platform . osType ( ) == 'win32' ? `${ process . env [ 'EIDE_MSYS' ] } /bash.exe` : '/bin/bash' ,
12011200 shellArgs : [ '-c' ] ,
12021201 cwd : definition ?. options ?. cwd || workspaceManager . getCurrentFolder ( ) ?. path ,
12031202 env : utility . mergeEnv ( process . env , { } )
12041203 } ) ;
12051204
1205+ task . group = definition . group ;
1206+
12061207 return task ;
12071208 }
12081209
0 commit comments