dbeaver/pro#9095 load active connections before checking execution context (#4355)

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
alex
2026-05-21 18:22:42 +02:00
committed by GitHub
co-authored by Daria Marutkina
parent dcd2b608ea
commit bccf47020e
@@ -314,11 +314,11 @@ export class SqlEditorTabService extends Bootstrap {
}
const dataSource = this.sqlDataSourceService.create(tab.handlerState, tab.handlerState.datasourceKey);
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
const executionContext = dataSource.executionContext;
if (executionContext) {
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
const contextConnection = createConnectionParam(executionContext.projectId, executionContext.connectionId);
if (!this.connectionInfoResource.has(contextConnection)) {