CB-3205 refactor: use RM API for nav-tree (#1771)

* CB-3205 refactor: use RM API for nav-tree

* CB-3205 fix: cached resource skipped outdate

* CB-3205 chore: revert CB-3513 fix (covered by another fix)

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
Alexey
2023-06-21 15:22:11 +03:00
committed by GitHub
co-authored by mr-anton-t
parent 464821cfd1
commit 377f6d4344
26 changed files with 419 additions and 167 deletions
@@ -223,6 +223,9 @@ export class ResourceSqlDataSourceBootstrap extends Bootstrap {
const tab = this.sqlEditorTabResourceService.getResourceTab(key);
if (tab) {
const dataSource = this.sqlDataSourceService.get(tab.handlerState.editorId) as ResourceSqlDataSource;
dataSource?.setResourceKey(undefined); // prevent deleted resource refresh
tabs.push(tab.id);
}
});