Skip to content

Clear ValueTracking on solution close#61815

Merged
ryzngard merged 11 commits intodotnet:mainfrom
ryzngard:issues/59423_clear_vt_on_sln_close
Jul 29, 2022
Merged

Clear ValueTracking on solution close#61815
ryzngard merged 11 commits intodotnet:mainfrom
ryzngard:issues/59423_clear_vt_on_sln_close

Conversation

@ryzngard
Copy link
Copy Markdown
Contributor

Fixes #59423

When a solution closes, the value tracking data is no longer valid. Just get rid of it to not hold onto solution and symbol data for something no longer available to the user.

@ryzngard ryzngard requested a review from a team as a code owner June 10, 2022 21:03
@ghost ghost added the Area-IDE label Jun 10, 2022
@ryzngard
Copy link
Copy Markdown
Contributor Author

ryzngard commented Jul 7, 2022

This depends on #62257 getting in

@ryzngard ryzngard enabled auto-merge (squash) July 14, 2022 22:12
Comment on lines +87 to +91
_ = _threadingContext.JoinableTaskFactory.RunAsync(async () =>
{
await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync();
ViewModel.Roots.Clear();
});
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to wrap this with an async waiter for integration tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik we don't have any integration tests for clearing solution/closing solution. If we add we definitely would need to

@ryzngard ryzngard merged commit d11a495 into dotnet:main Jul 29, 2022
@ryzngard ryzngard deleted the issues/59423_clear_vt_on_sln_close branch July 29, 2022 21:39
@ghost ghost added this to the Next milestone Jul 29, 2022
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Value tracking continues to work after closing solution or even changing solution

5 participants