-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Re-add ServiceFeatureOnOffOptions.ClosedFileDiagnostic to fix the bre… #39955
Conversation
…ak for TS and F# Recent PR dotnet#39699 introduced a breaking API and functionality change for TypeScript and F# as they are using our internal option ClosedFileDiagnostics for controlling their full solution analysis experience. This PR restores the ClosedFileDiagnostics option and functionality for non C#/VB languages. Additionally, the newly added option SolutionCrawlerOptions.BackgroundAnalysisScope has been made a per-language option so that all languages can have different UI/setting for this option.
src/Workspaces/Core/Portable/SolutionCrawler/ServiceFeatureOnOffOptions.cs
Outdated
Show resolved
Hide resolved
{ | ||
case LanguageNames.CSharp: | ||
case LanguageNames.VisualBasic: | ||
return options.GetOption(BackgroundAnalysisScopeOption, language); |
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.
So are we ignoring previous settings of the open/closed diagnostics setting for C# and VB? We don't want to read those if the new one hasn't been set?
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.
There is no UI to set the older option for C# and VB though. Also, I am not sure how would we hook up option page setting based on 2 options. Current BindToOption
approach simply connects the UI radio button to the new option. Having said that, we can potentially set this up somehow, but I am not sure if the effort is worth it.
Merging this to unblock insertion. I will address any additional feedback with a follow-up PR. |
dotnet#39955 re-added the option back to Workspaces instead of Features, its original location
…ak for TS and F#
Recent PR #39699 introduced a breaking API and functionality change for TypeScript and F# as they are using our internal option
ClosedFileDiagnostic
for controlling their full solution analysis experience. This PR restores this option and functionality for non-C#/VB languages. Additionally, the newly added optionSolutionCrawlerOptions.BackgroundAnalysisScope
has been made a per-language option so that all languages can have different UI/setting for this option.