Skip to content

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 9, 2025 20:47
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 9, 2025
// might have beaten us to storing in it.
#if NET
_projectToForceAnalysisData.TryAdd(project, box);
Contract.ThrowIfFalse(_projectToForceAnalysisData.TryGetValue(project, out box));
Copy link
Member Author

Choose a reason for hiding this comment

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

can be replaced with GetOrAdd dotnet/runtime#111204 when we move to NET10

tupleBox = new((stateSets, compilationWithAnalyzersPair));

#if NET
s_projectToCompilationWithAnalyzers.AddOrUpdate(project, tupleBox);
Copy link
Contributor

Choose a reason for hiding this comment

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

s_projectToCompilationWithAnalyzers.AddOrUpdate(project, tupleBox);

nit: might be nice for this guy to get his own comment too

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

var compilationWithAnalyzersPair = await CreateCompilationWithAnalyzersAsync().ConfigureAwait(false);
tupleBox = new((stateSets, compilationWithAnalyzersPair));

#if NET
Copy link
Member

@dibarbet dibarbet Feb 10, 2025

Choose a reason for hiding this comment

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

is this running out of proc or in-proc in VS? (curious if this only applies to VSCode)

Copy link
Member Author

Choose a reason for hiding this comment

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

this runs in proc in VS currently. but i would like it to run OOP. basically, we run most of diagnostics in proc until the point of calling out to actually do the computation. i'd like to push this much higher so that we basically remote over the call to the IDiagService immediately, and do everything else on the OOP side. that is upcoming.

@CyrusNajmabadi CyrusNajmabadi merged commit c7f663c into dotnet:main Feb 10, 2025
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the optimizeNet branch February 10, 2025 20:24
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 10, 2025
@akhera99 akhera99 modified the milestones: Next, 17.14 P2 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants