-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Switch SG mode to 'balanced' by default #73618
Switch SG mode to 'balanced' by default #73618
Conversation
@@ -50,5 +50,5 @@ public static WorkspaceConfigurationOptions GetWorkspaceConfigurationOptions(thi | |||
SourceGeneratorExecutionPreferenceUtilities.GetEditorConfigString)); | |||
|
|||
public static readonly Option2<bool> SourceGeneratorExecutionBalancedFeatureFlag = new( | |||
"dotnet_source_generator_execution_balanced_feature_flag", false); | |||
"dotnet_source_generator_execution_balanced_feature_flag", true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we still have the feature flag. So we still have control-tower support to flip this back to 'false' if we run into any problems with this in the wild.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we might need to have a modification here to leave it false by default for VSCode - I haven't yet had a chance to implement balanced mode there yet. Easiest way if you want to change the default is have a line of code in the language server project to explicitly set this to false - https://github.com/dotnet/roslyn/blob/main/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/Program.cs#L90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
||
// If we added or removed analyzers, then re-run all generators to bring them up to date. | ||
if (hasAnalyzerChanges) | ||
_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is projectId null here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that means "redo all generators".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CyrusNajmabadi For all projects though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.
Optional severity As RenameDashboardSeverity = RenameDashboardSeverity.None | ||
) As Tasks.Task | ||
Optional severity As RenameDashboardSeverity = RenameDashboardSeverity.None, | ||
Optional executionPreference As SourceGeneratorExecutionPreference = SourceGeneratorExecutionPreference.Automatic) As Task |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels a bit odd to me that rename tests are concerning themselves with this -- it seems like this is just something the underlying system should be handling. But maybe I'm missing something here since I'm ramping back up on this space.
No description provided.