Filter templates by supported engine type (#6133)

* Filter templates by supported engine type

* fix the azure sql db name
This commit is contained in:
Alan Ren
2019-06-24 23:37:56 -07:00
committed by GitHub
parent a906a9c862
commit ac76302d6c
4 changed files with 27 additions and 5 deletions

View File

@@ -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);
});
}
}