File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -304,16 +304,15 @@ export class JobManagerView implements TreeDataProvider<any> {
304
304
updateStatusBar ( ) ;
305
305
306
306
const selectedJob = JobManager . getSelection ( ) ;
307
- const selectedSchema = selectedJob ?. job . options . libraries [ 0 ] ;
308
-
307
+
309
308
// re-register db2i tables context provider with current schema
309
+ const selectedSchema = selectedJob ?. job . options . libraries [ 0 ] ?. trim ( ) . toLowerCase ( ) ;
310
+ const currentSchema = provider ?. getCurrentSchema ( ) . trim ( ) . toLowerCase ( ) ;
310
311
if (
311
312
provider &&
312
- selectedJob !== undefined &&
313
- provider . getCurrentSchema ( ) &&
313
+ selectedJob &&
314
314
selectedSchema &&
315
- provider . getCurrentSchema ( ) . trim ( ) . toLowerCase ( ) !==
316
- selectedSchema . trim ( ) . toLowerCase ( )
315
+ currentSchema !== selectedSchema
317
316
) {
318
317
registerDb2iTablesProvider ( selectedSchema ) ;
319
318
}
You can’t perform that action at this time.
0 commit comments