File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ export class JobManagerView implements TreeDataProvider<any> {
126
126
127
127
try {
128
128
await selected . job . connect ( ) ;
129
-
130
- // re register tables provider with potential new Schema
131
- const schema = selected . job . options . libraries [ 0 ] ;
132
- await registerDb2iTablesProvider ( schema ) ;
133
129
} catch ( e ) {
134
130
window . showErrorMessage ( `Failed to start new job with updated properties.` ) ;
135
131
}
@@ -281,8 +277,6 @@ export class JobManagerView implements TreeDataProvider<any> {
281
277
vscode . commands . registerCommand ( selectJobCommand , async ( selectedName : string ) => {
282
278
if ( selectedName ) {
283
279
await JobManager . setSelection ( selectedName ) ;
284
- const schema = JobManager . getSelection ( ) . job . options . libraries [ 0 ] ;
285
- await registerDb2iTablesProvider ( schema ) ;
286
280
this . refresh ( ) ;
287
281
}
288
282
} ) ,
@@ -310,6 +304,9 @@ export class JobManagerView implements TreeDataProvider<any> {
310
304
updateStatusBar ( ) ;
311
305
312
306
const selectedJob = JobManager . getSelection ( ) ;
307
+
308
+ // re-register db2i tables context provider with current schema
309
+ registerDb2iTablesProvider ( selectedJob . job . options . libraries [ 0 ] ) ;
313
310
314
311
setCancelButtonVisibility ( selectedJob && selectedJob . job . getStatus ( ) === "busy" ) ;
315
312
sqlLanguageStatus . setState ( selectedJob !== undefined ) ;
You can’t perform that action at this time.
0 commit comments