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

Dispose of cached browse config on dispose if no longer registered. #10608

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

Colengms
Copy link
Collaborator

This was originally intended as an optimization for a race condition at start-up. If a custom configuration provider had previously been used, but had not yet registered, we were clearing out its headers from the database before shortly thereafter needing to add them back in again once it's registered. We addressed this by caching the browse configuration for the provider and using it immediately on the next launch.

This change removes the cache at the end of the session, if the configuration provider did not actually register at all. This avoids a potential security issue, due to execution of a no-longer-desired compilerPath to query for system include paths.

@Colengms Colengms merged commit febcf11 into main Feb 28, 2023
@Colengms Colengms deleted the coleng/discard_provider_cache branch February 28, 2023 00:50
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants