Skip to content

Commit bccf470

Browse files
dbeaver/pro#9095 load active connections before checking execution context (#4355)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
1 parent dcd2b60 commit bccf470

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/packages/plugin-sql-editor-navigation-tab/src/SqlEditorTabService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ export class SqlEditorTabService extends Bootstrap {
314314
}
315315

316316
const dataSource = this.sqlDataSourceService.create(tab.handlerState, tab.handlerState.datasourceKey);
317+
318+
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
317319
const executionContext = dataSource.executionContext;
318320

319321
if (executionContext) {
320-
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
321-
322322
const contextConnection = createConnectionParam(executionContext.projectId, executionContext.connectionId);
323323

324324
if (!this.connectionInfoResource.has(contextConnection)) {

0 commit comments

Comments
 (0)