Skip to content

fix(plugin-sql-editor-navigation-tab): CB-1675 select connection if t…#906

Closed
devnaumov wants to merge 1 commit intodevelfrom
fix/sql-editor-link
Closed

fix(plugin-sql-editor-navigation-tab): CB-1675 select connection if t…#906
devnaumov wants to merge 1 commit intodevelfrom
fix/sql-editor-link

Conversation

@devnaumov
Copy link
Copy Markdown
Member

…here are no schemas

@devnaumov devnaumov requested a review from Wroud June 19, 2022 18:50
@devnaumov devnaumov self-assigned this Jun 19, 2022
Comment on lines +134 to +143
private getNavNode(tab: ITab<ISqlEditorTabState>) {
const objectCatalog = this.connectionSchemaManagerService.currentObjectCatalog;
const objectSchema = this.connectionSchemaManagerService.currentObjectSchema;
const connectionId = this.getConnectionId(tab);

let nodeId = objectSchema?.id ?? objectCatalog?.id;

if (!nodeId && connectionId) {
nodeId = NodeManagerUtils.connectionIdToConnectionNodeId(connectionId);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't use data from connectionSchemaManagerService

@devnaumov devnaumov closed this Jun 20, 2022
@devnaumov devnaumov deleted the fix/sql-editor-link branch June 23, 2022 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants