mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 01:25:38 -05:00
Removed duplicate connections code (#5045)
* removed duplicate connections code * removed old comment * removed unused code
This commit is contained in:
@@ -10,7 +10,6 @@ import { IConnectionManagementService } from 'sql/platform/connection/common/con
|
||||
import { ICapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesService';
|
||||
import { IQueryEditorService } from 'sql/workbench/services/queryEditor/common/queryEditorService';
|
||||
import { ServerTreeView } from 'sql/parts/objectExplorer/viewlet/serverTreeView';
|
||||
import { ConnectionViewlet } from 'sql/workbench/parts/connection/electron-browser/connectionViewlet';
|
||||
import { IConnectionProfile } from 'sql/platform/connection/common/interfaces';
|
||||
import { ConnectionProfileGroup } from 'sql/platform/connection/common/connectionProfileGroup';
|
||||
import * as TaskUtilities from 'sql/workbench/common/taskUtilities';
|
||||
@@ -377,27 +376,3 @@ export class DeleteConnectionAction extends Action {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Action to clear search results
|
||||
*/
|
||||
export class ClearSearchAction extends Action {
|
||||
public static ID = 'registeredServers.clearSearch';
|
||||
public static LABEL = localize('clearSearch', 'Clear Search');
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
label: string,
|
||||
private _viewlet: ConnectionViewlet | ConnectionViewletPanel,
|
||||
@IConnectionManagementService private _connectionManagementService: IConnectionManagementService
|
||||
) {
|
||||
super(id, label);
|
||||
this.class = 'icon close';
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
public run(): Promise<boolean> {
|
||||
this._viewlet.clearSearch();
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user