File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2343,7 +2343,9 @@ export class ShellExecution implements vscode.ShellExecution {
2343
2343
throw illegalArgument ( 'command' ) ;
2344
2344
}
2345
2345
this . _command = arg0 ;
2346
- this . _args = arg1 as ( string | vscode . ShellQuotedString ) [ ] ;
2346
+ if ( arg1 ) {
2347
+ this . _args = arg1 ;
2348
+ }
2347
2349
this . _options = arg2 ;
2348
2350
} else {
2349
2351
if ( typeof arg0 !== 'string' ) {
@@ -2380,7 +2382,7 @@ export class ShellExecution implements vscode.ShellExecution {
2380
2382
return this . _args ;
2381
2383
}
2382
2384
2383
- set args ( value : ( string | vscode . ShellQuotedString ) [ ] ) {
2385
+ set args ( value : ( string | vscode . ShellQuotedString ) [ ] | undefined ) {
2384
2386
this . _args = value || [ ] ;
2385
2387
}
2386
2388
Original file line number Diff line number Diff line change @@ -8668,12 +8668,12 @@ declare module 'vscode' {
8668
8668
/**
8669
8669
* The shell command. Is `undefined` if created with a full command line.
8670
8670
*/
8671
- command: string | ShellQuotedString;
8671
+ command: string | ShellQuotedString | undefined ;
8672
8672
8673
8673
/**
8674
8674
* The shell args. Is `undefined` if created with a full command line.
8675
8675
*/
8676
- args: Array<string | ShellQuotedString>;
8676
+ args: Array<string | ShellQuotedString> | undefined ;
8677
8677
8678
8678
/**
8679
8679
* The shell options used when the command line is executed in a shell.
You can’t perform that action at this time.
0 commit comments