fix(plugin-ddl-viewer): CB-1756 use connection name instead of catalog

This commit is contained in:
Naumov Alexey
2022-03-22 15:22:24 +03:00
parent 15ea07f322
commit efd59e5786
@@ -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,