Skip to content

Fix global option service to handle non-default values from persisters#52335

Merged
mavasani merged 1 commit intodotnet:release/dev16.10from
mavasani:FixTodoCommentsIssue
Apr 1, 2021
Merged

Fix global option service to handle non-default values from persisters#52335
mavasani merged 1 commit intodotnet:release/dev16.10from
mavasani:FixTodoCommentsIssue

Conversation

@mavasani
Copy link
Contributor

@mavasani mavasani commented Apr 1, 2021

Fixes AB#1128126

Currently, the global option service only tracks explicitly changed option keys. This means options that have non-default values from option persisters are not part of tracked changed option keys, which leads to GlobalOptionService.SetOptions to ignore these options until an actual new solution snapshot is produced with the non-default option value.

Verified customer repro and added unit test failure prior to the fix.

@mavasani mavasani added this to the 16.10 milestone Apr 1, 2021
@mavasani mavasani requested a review from a team as a code owner April 1, 2021 10:44
@sharwell
Copy link
Contributor

sharwell commented Apr 1, 2021

@jinujoseph I think this should go in 16.10 Preview 2, and #52144 should go in 16.10 Preview 3.

Fixes [AB#1128126](https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1128126)

Currently, the global option service only tracks explicitly changed option keys. This means options that have non-default values from option persisters are not part of tracked changed option keys, which leads to GlobalOptionService.SetOptions to ignore these options until an actual new solution snapshot is produced with the non-default option value.

Verified customer repro and added unit test failure prior to the fix.
@mavasani mavasani changed the base branch from main to release/dev16.10 April 1, 2021 16:33
@mavasani mavasani requested review from a team as code owners April 1, 2021 16:33
@mavasani mavasani force-pushed the FixTodoCommentsIssue branch from 3dbe483 to 31570ce Compare April 1, 2021 16:34
@jinujoseph jinujoseph modified the milestones: 16.10, 16.10.P2 Apr 1, 2021
@mavasani mavasani enabled auto-merge April 1, 2021 16:39
@mavasani mavasani merged commit f3a4878 into dotnet:release/dev16.10 Apr 1, 2021
@mavasani mavasani deleted the FixTodoCommentsIssue branch April 1, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants