fix(plugin-sql-editor): CB-396 concurrent sql editor opening

This commit is contained in:
Wroud
2020-11-12 00:02:25 +03:00
parent 7980856dda
commit e4f9e4ef73
@@ -51,7 +51,10 @@ export class SqlEditorNavigatorService {
private connectionInfoResource: ConnectionInfoResource,
private sqlEditorTabService: SqlEditorTabService
) {
this.navigator = new Executor<SQLCreateAction | SQLEditorAction>()
this.navigator = new Executor<SQLCreateAction | SQLEditorAction>(
null,
(active, current) => active.type === current.type
)
.addHandler(this.navigateHandler.bind(this));
this.connectionsManagerService.onCloseConnection.subscribe(this.handleConnectionClose.bind(this));
}