Azure extension changes (#4987)

* removed search box

* removed commented code
This commit is contained in:
Aditya Bist
2019-04-11 09:44:43 -07:00
committed by GitHub
parent c725f6f572
commit fe12233954
8 changed files with 55 additions and 56 deletions

View File

@@ -174,3 +174,18 @@ export abstract class ProgressCommand extends Command {
});
}
}
export function registerSearchServerCommand(appContext: AppContext): void {
appContext.apiWrapper.registerCommand('mssql.searchServers', () => {
vscode.window.showInputBox({
placeHolder: localize('mssql.searchServers', 'Search Server Names')
}).then((stringSearch) => {
if (stringSearch) {
vscode.commands.executeCommand('registeredServers.searchServer', (stringSearch));
}
});
});
appContext.apiWrapper.registerCommand('mssql.clearSearchServerResult', () => {
vscode.commands.executeCommand('registeredServers.clearSearchServerResult');
});
}