-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove the PreviewWorkspace SolutionCrawler functionality #67027
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
Conversation
|
|
||
| [WorkItem(923196, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/923196")] | ||
| [WpfFact] | ||
| public async Task TestPreviewDiagnostic() |
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.
pull tagger test is below. this one was testing the push/solution-crawler version.
| workspace.TryApplyChanges(workspace.CurrentSolution.WithAnalyzerReferences(new[] { DiagnosticExtensions.GetCompilerDiagnosticAnalyzerReference(LanguageNames.CSharp) })); | ||
|
|
||
| // set up listener to wait until diagnostic finish running | ||
| _ = workspace.ExportProvider.GetExportedValue<IDiagnosticService>(); |
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.
was previously using push. updated to pull below.
| // We rely on LSP to query us for diagnostics when things have changed and poll us for changes that might | ||
| // have happened to the project or closed files outside of VS. However, we still need to create the analyzer | ||
| // so that the map contains the analyzer to run when pull diagnostics asks. | ||
| return GlobalOptions.IsLspPullDiagnostics() ? NoOpIncrementalAnalyzer.Instance : analyzer; |
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.
same logic a before. i just rejiggered. in both paths below we were adding hte item to the map. i pulled that above, and then just changed the logic if the NoOp analyzer is returned or the actual instance.
|
Merging to facilitate lightbulb performance measurements with this change. |
SolutionCrawler here serves no purpose. The preview window is already only in one of two modes:
So yaay, we just get to ditch this.
There is still work to be done to get the pull-tagging in the preview window to do the computation in OOP, not in proc. But that's upcoming.