mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 09:35:38 -05:00
Filter templates by supported engine type (#6133)
* Filter templates by supported engine type * fix the azure sql db name
This commit is contained in:
@@ -116,6 +116,10 @@ export class CreateSessionDialog {
|
||||
let name = this.sessionNameBox.value;
|
||||
let selected = this.templatesBox.value.toString();
|
||||
let temp = this.model.selectTemplate(selected);
|
||||
profilerService.createSession(this.model.ownerUri, this.sessionNameBox.value, temp);
|
||||
profilerService.createSession(this.model.ownerUri, this.sessionNameBox.value, temp).then(() => {
|
||||
}, (error) => {
|
||||
const message = error && error.message ? error.message : localize('createSessionDialog.createSessionFailed', "Failed to create a session");
|
||||
vscode.window.showErrorMessage(message);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user