fix flatfile and dacfx wizard not defaulting to selected connection when launched from command palette (#4344)

This commit is contained in:
kisantia
2019-03-08 09:19:03 -08:00
committed by GitHub
parent 496243fbc7
commit bcfbe5a284
2 changed files with 11 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ export class FlatFileWizard {
return;
}
let currentConnection = await azdata.connection.getCurrentConnection();
model.serverId = currentConnection.connectionId;
this.wizard = azdata.window.createWizard(localize('flatFileImport.wizardName', 'Import flat file wizard'));
let page1 = azdata.window.createWizardPage(localize('flatFileImport.page1Name', 'Specify Input File'));
let page2 = azdata.window.createWizardPage(localize('flatFileImport.page2Name', 'Preview Data'));