File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export class OldSQLJob extends SQLJob {
151151
152152 const props = Object
153153 . keys ( this . options )
154+ . filter ( prop => this . options [ prop ] !== `` && this . options [ prop ] !== null && this . options [ prop ] !== undefined ) // 0 is valid
154155 . map ( prop => {
155156 if ( Array . isArray ( this . options [ prop ] ) ) {
156157 return `${ prop } =${ ( this . options [ prop ] as string [ ] ) . join ( `,` ) } ` ;
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ export class JobManagerView implements TreeDataProvider<any> {
3636 } ) ,
3737
3838 vscode . commands . registerCommand ( `vscode-db2i.jobManager.newJob` , async ( options ?: JDBCOptions , name ?: string ) => {
39+ if ( options && 'contextValue' in options ) {
40+ // This happens because the button is clickable from the Job Manager title bar.
41+ options = undefined ;
42+ }
43+
3944 try {
4045 updateStatusBar ( { newJob : true } ) ;
4146 await JobManager . newJob (
You can’t perform that action at this time.
0 commit comments