Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure project cache initialization happens only once #6569

Merged
merged 6 commits into from
Jun 30, 2021

Conversation

cdmihai
Copy link
Contributor

@cdmihai cdmihai commented Jun 16, 2021

Based on #6568. Review that one first. First commit of this PR is Don't launch debugger window for all tests.

Context

Turns out the VS workaround was initializing the plugin on every project query, thus crashing the cache.

Changes Made

Initialization is happening only once now.
ProjectCacheService is now asserting that it's always in expected states.

Testing

Unit tests.

Notes

Does not affect non project cache code paths so should be no risk for 16.11.

@cdmihai cdmihai changed the title Assert cache states Ensure cache initialization happens only once. Jun 16, 2021
@cdmihai cdmihai changed the title Ensure cache initialization happens only once. Ensure cache initialization happens only once Jun 16, 2021
@cdmihai cdmihai changed the title Ensure cache initialization happens only once Ensure project cache initialization happens only once Jun 16, 2021
@cdmihai cdmihai force-pushed the assertCacheStates branch from 4814ffb to 13fc8b6 Compare June 18, 2021 19:44
@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants