Merge pull request #725 from dbeaver/fix/sql-editor-from-ddl-tab-name

fix(plugin-ddl-viewer): CB-1756 use connection name instead of catalog
This commit is contained in:
Alexey
2022-03-22 15:26:53 +03:00
committed by GitHub
@@ -77,8 +77,8 @@ export class DDLViewerFooterService {
path.push(node.name);
}
const catalog = container.catalogId ? '<' + container.catalogId + '> ' : '';
const name = `${catalog}DDL${path.length ? ' of <' + path.join('.') + '>' : ''}`;
const connectionName = connection?.name ? '<' + connection.name + '> ' : '';
const name = `${connectionName}DDL${path.length ? ' of <' + path.join('.') + '>' : ''}`;
await this.sqlEditorNavigatorService.openNewEditor({
name,