File tree Expand file tree Collapse file tree
src/vs/workbench/api/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ namespace Strings {
252252}
253253
254254namespace CommandOptions {
255- function isShellOptions ( value : any ) : value is vscode . ShellTaskOptions {
255+ function isShellConfiguration ( value : any ) : value is { executable : string ; shellArgs ?: string [ ] } {
256256 return value && typeof value . executable === 'string' ;
257257 }
258258 export function from ( value : vscode . ShellTaskOptions | vscode . ProcessTaskOptions ) : TaskSystem . CommandOptions {
@@ -273,22 +273,22 @@ namespace CommandOptions {
273273 }
274274 } ) ;
275275 }
276- if ( isShellOptions ( value ) ) {
276+ if ( isShellConfiguration ( value ) ) {
277277 result . shell = ShellConfiguration . from ( value ) ;
278278 }
279279 return result ;
280280 }
281281}
282282
283283namespace ShellConfiguration {
284- export function from ( value : { executable ?: string , args ?: string [ ] } ) : TaskSystem . ShellConfiguration {
284+ export function from ( value : { executable ?: string , shellArgs ?: string [ ] } ) : TaskSystem . ShellConfiguration {
285285 if ( value === void 0 || value === null || ! value . executable ) {
286286 return undefined ;
287287 }
288288
289289 let result : TaskSystem . ShellConfiguration = {
290290 executable : value . executable ,
291- args : Strings . from ( value . args )
291+ args : Strings . from ( value . shellArgs )
292292 } ;
293293 return result ;
294294 }
You can’t perform that action at this time.
0 commit comments