Update default values and example text when dropdown value changes (#12493)

This commit is contained in:
Kim Santiago
2020-09-18 18:32:09 -07:00
committed by GitHub
parent 6ae0fc9aef
commit b05cbe5356

View File

@@ -257,6 +257,10 @@ export class AddDatabaseReferenceDialog {
ariaLabel: constants.databaseProject
}).component();
this.projectDropdown.onValueChanged(() => {
this.setDefaultDatabaseValues();
});
// get projects in workspace
const workspaceFolders = vscode.workspace.workspaceFolders;
if (workspaceFolders?.length) {