mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
fix the reference error due to extra $ in default variable (#12523)
This commit is contained in:
@@ -433,7 +433,7 @@ export class AddDatabaseReferenceDialog {
|
||||
switch (this.currentReferenceType) {
|
||||
case ReferenceType.project: {
|
||||
this.databaseNameTextbox!.value = <string>this.projectDropdown?.value;
|
||||
this.databaseVariableTextbox!.value = `$(${this.projectDropdown?.value})`;
|
||||
this.databaseVariableTextbox!.value = `${this.projectDropdown?.value}`;
|
||||
break;
|
||||
}
|
||||
case ReferenceType.systemDb: {
|
||||
@@ -443,7 +443,7 @@ export class AddDatabaseReferenceDialog {
|
||||
case ReferenceType.dacpac: {
|
||||
const dacpacName = this.dacpacTextbox!.value ? path.parse(this.dacpacTextbox!.value!).name : '';
|
||||
this.databaseNameTextbox!.value = dacpacName;
|
||||
this.databaseVariableTextbox!.value = dacpacName ? `$(${dacpacName})` : '';
|
||||
this.databaseVariableTextbox!.value = dacpacName ? `${dacpacName}` : '';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user