mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Updating DacFx.Projects to bring in UpdateSqlCmdVariable fix (#2045)
* checkpoint * typo * removing old nuget
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user