mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 01:25:38 -05:00
Azure extension changes (#4987)
* removed search box * removed commented code
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import 'vs/css!./media/serverTreeActions';
|
||||
import * as errors from 'vs/base/common/errors';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
|
||||
import Severity from 'vs/base/common/severity';
|
||||
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
||||
import { attachListStyler } from 'vs/platform/theme/common/styler';
|
||||
@@ -34,6 +34,7 @@ import { IErrorMessageService } from 'sql/platform/errorMessage/common/errorMess
|
||||
import { ServerTreeActionProvider } from 'sql/parts/objectExplorer/viewlet/serverTreeActionProvider';
|
||||
import { ICapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesService';
|
||||
import { isHidden } from 'sql/base/browser/dom';
|
||||
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
|
||||
|
||||
/**
|
||||
* ServerTreeview implements the dynamic tree view.
|
||||
@@ -72,6 +73,7 @@ export class ServerTreeView {
|
||||
this._treeSelectionHandler.onTreeActionStateChange(false);
|
||||
}
|
||||
});
|
||||
this.registerCommands();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,6 +98,25 @@ export class ServerTreeView {
|
||||
return this._tree;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Register search related commands
|
||||
*/
|
||||
public registerCommands(): void {
|
||||
CommandsRegistry.registerCommand({
|
||||
id: 'registeredServers.searchServer',
|
||||
handler: (accessor: ServicesAccessor, ...args: any[]) => {
|
||||
this.searchTree(args[0]);
|
||||
}
|
||||
});
|
||||
CommandsRegistry.registerCommand({
|
||||
id: 'registeredServers.clearSearchServerResult',
|
||||
handler: (accessor: ServicesAccessor, ...args: any[]) => {
|
||||
this.refreshTree();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the view body
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user