enable filtering, account node context menu and introduce flat account tree node (#13066)

* add search box

* switch back to the traditional azure tree

* Revert "switch back to the traditional azure tree"

This reverts commit 7904b9cd599591e94412ec79da23590068de46b6.

* flat account tree node and filtering

* add comment

* context menu

* fix test

* handle disposable

* add logging
This commit is contained in:
Alan Ren
2020-10-26 17:00:44 -07:00
committed by GitHub
parent 1e3c9b722e
commit 79800902db
9 changed files with 495 additions and 32 deletions

View File

@@ -28,6 +28,7 @@ import { Registry } from 'vs/platform/registry/common/platform';
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
import { TestTreeView } from 'sql/workbench/services/connection/test/browser/testTreeView';
import { ConnectionTreeService, IConnectionTreeService } from 'sql/workbench/services/connection/common/connectionTreeService';
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
suite('ConnectionDialogWidget tests', () => {
const testTreeViewId = 'testTreeView';
const ViewsRegistry = Registry.as<IViewsRegistry>(Extensions.ViewsRegistry);
@@ -53,6 +54,8 @@ suite('ConnectionDialogWidget tests', () => {
cmInstantiationService = new TestInstantiationService();
cmInstantiationService.stub(IStorageService, new TestStorageService());
cmInstantiationService.stub(IConnectionTreeService, new ConnectionTreeService());
cmInstantiationService.stub(IContextKeyService, new MockContextKeyService());
mockConnectionManagementService = TypeMoq.Mock.ofType(ConnectionManagementService, TypeMoq.MockBehavior.Strict,
undefined, // connection store
undefined, // connection status manager