Skip to content

Conversation

@chsienki
Copy link
Member

No description provided.

chsienki and others added 6 commits November 4, 2025 14:33
Pass in assembly name as tracking name from the command line compiler
This makes a few general changes to how we cache drivers so we don't
re-initialize them multiple times when we're first loading a solution.

1. Rather than the cache being a ProjectId -> cached driver map,
   we instead just have the object holding the cached driver held
   directly by the ProjectState.
2. Rather than clearing out the cached driver once we think we won't
   need it, we just continually refresh the cached driver with the
   latest version. This simplifies the logic and also ensures we won't
   ever clear something out that we would need later, but still
   keeps us from holding onto old state.
3. Rather than explicitly clearing out the initialized driver when we
   have to rerun generators, we keep it around.
@dotnet-policy-service dotnet-policy-service bot added VSCode Needs API Review Needs to be reviewed by the API review council labels Nov 19, 2025
@dotnet-policy-service
Copy link
Contributor

This PR modifies public API files. Please follow the instructions at https://github.com/dotnet/roslyn/blob/main/docs/contributing/API%20Review%20Process.md for ensuring all public APIs are reviewed before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs API Review Needs to be reviewed by the API review council VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants