Skip to content
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

Move diagnostic service to LSP layer #59456

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

tmat
Copy link
Member

@tmat tmat commented Feb 10, 2022

Move diagnostic service and all code that depends on it out of Features layer to LSP layer.
This code is currently client code - it does not run OOP but also does not have dependency on editor. The code will be further simplified/eliminated once we transition to pull diagnostics.

Split AnalyzerHelpers helpers among AnalyzerOptionsExtensions in Features, AnalyzerOptionsExtensions in Analyzers shared project, DiagnosticAnalyzerExtensions and DocumentAnalysisExecutor.

Removes IIncrementalAnalyzer2.

Simplify CodeFixService.FixAllDiagnosticProvider.

Move ClassificationOptionsStorage, CompletionOptionStorage and SignatureHelpOptionsStorage to LSP layer.

Fixes #59184
Fixes #45936

Requires:

@tmat tmat changed the title Diagnostic incremental analzyer Diagnostic incremental analyzer Feb 10, 2022
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch 4 times, most recently from 0e94556 to c2d233e Compare February 17, 2022 00:30
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch 4 times, most recently from 3d464c5 to e8893a2 Compare February 23, 2022 17:32
@tmat tmat changed the title Diagnostic incremental analyzer Move diagnostic service to LSP layer Feb 23, 2022
@tmat tmat marked this pull request as ready for review February 23, 2022 17:54
@tmat tmat requested a review from a team as a code owner February 23, 2022 17:54
@tmat
Copy link
Member Author

tmat commented Feb 23, 2022

@dibarbet @mavasani @sharwell @dotnet/roslyn-ide PTAL

Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

mostly looks OK to me, would recommend Manish looking as well.

@dibarbet
Copy link
Member

This should most likely have a val build as well

@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch from 5dca558 to 23bb31a Compare February 23, 2022 21:35
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch from b96d302 to c499d15 Compare February 25, 2022 21:58
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch 2 times, most recently from 705f05f to 45e6350 Compare March 7, 2022 23:32
@tmat tmat enabled auto-merge (squash) March 7, 2022 23:32
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch from 45e6350 to 2a96692 Compare March 8, 2022 04:44
Refactor AnalyzerHelpers

Remove IIncementalAnalyzer2

Move DiagnosticService to LSP layer

Move DiagnosticIncrementalAnalyzer to LSP

Move *OptionsStorage types

Simplify CodeFixService

Move CodeFixService and CodeCleanupService to LSP layer

Include LSP layer in EditorFeatures test composition
@tmat tmat force-pushed the DiagnosticIncrementalAnalzyer branch from 2a96692 to 2f21400 Compare March 8, 2022 17:19
@tmat tmat merged commit 25bc39b into dotnet:main Mar 8, 2022
@ghost ghost added this to the Next milestone Mar 8, 2022
@tmat tmat deleted the DiagnosticIncrementalAnalzyer branch March 8, 2022 20:05
@allisonchou allisonchou modified the milestones: Next, 17.2.P3 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move *OptionsMetadata types to EditorFeatures Follow-up cleanup work for IIncrementalAnalyzer
5 participants