Clean importer startup (#2197)

* Cleans up issues from: https://github.com/Microsoft/sqlopsstudio/issues/2183
This commit is contained in:
Amir Ali Omidi
2018-08-09 14:34:17 -07:00
committed by GitHub
parent 7089e2299a
commit 5fb9b8ccd3
5 changed files with 4 additions and 9 deletions

View File

@@ -33,10 +33,9 @@ export class FlatFileWizard {
let pages: Map<number, ImportPage> = new Map<number, ImportPage>();
// TODO localize this
let connections = await sqlops.connection.getActiveConnections();
if (!connections || connections.length === 0) {
vscode.window.showErrorMessage('Please connect to a server before using this wizard.');
vscode.window.showErrorMessage(localize('import.needConnection', 'Please connect to a server before using this wizard.'));
return;
}