mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
fix the reference error due to extra $ in default variable (#12523)
This commit is contained in:
@@ -120,7 +120,7 @@ export const enterSystemDbName = localize('enterSystemDbName', "Enter a database
|
||||
export const databaseNameRequiredVariableOptional = localize('databaseNameRequiredVariableOptional', "A database name is required. The database variable is optional.");
|
||||
export const databaseNameServerNameVariableRequired = localize('databaseNameServerNameVariableRequired', "A database name, server name, and server variable are required. The database variable is optional");
|
||||
export const otherServer = 'OtherServer';
|
||||
export const otherSeverVariable = '$(OtherServer)';
|
||||
export const otherSeverVariable = 'OtherServer';
|
||||
export const databaseProject = localize('databaseProject', "Database project");
|
||||
|
||||
// Error messages
|
||||
|
||||
@@ -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