dotnet / dotnet/roslyn

Consider making VisualStudioMetadataReferenceManager.ctor thread safe

Open
#77,791 3 comments 0 reactions 0 assignees View on GitHub
Area-IDE
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

The main thread affinity of this ctor should be investigated further to determine if it would be possible to remove that dependency. Tying this to the main thread puts a bit of an onus on the creators of this type to understand this requirement, and the main thread in VS is already bogged down quite a bit, particularly during package/solution load.

Contributor guide

Open the contributing guide

Research direction

Start by locating VisualStudioMetadataReferenceManager.ctor and tracing the callers that require the main thread. Investigate its use during package and solution load, then determine whether the thread-affinity dependency can be removed safely; completion should include a documented conclusion and any necessary follow-up scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
developer-experience, tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.