Updating DacFx.Projects to bring in UpdateSqlCmdVariable fix (#2045)

* checkpoint

* typo

* removing old nuget
This commit is contained in:
Benjin Dubishar
2023-05-08 11:06:35 -07:00
committed by GitHub
parent bd1fc0997d
commit b9d6657886
4 changed files with 3 additions and 4 deletions

View File

@@ -531,9 +531,8 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlProjects
{
await RunWithErrorHandling(() =>
{
SqlProject project = GetProject(requestParams.ProjectUri, onlyLoadProperties: true);
project.SqlCmdVariables.Delete(requestParams.Name); // idempotent (won't throw if doesn't exist)
project.SqlCmdVariables.Add(new SqlCmdVariable(requestParams.Name, requestParams.DefaultValue));
SqlProject project = GetProject(requestParams.ProjectUri!, onlyLoadProperties: true);
project.SqlCmdVariables.Update(requestParams.Name, requestParams.DefaultValue); // won't throw if doesn't exist
}, requestContext);
}