Skip to content

Move IAddMissingImportsFeatureService to use OOP#55318

Merged
ryzngard merged 4 commits intodotnet:mainfrom
ryzngard:features/addimportfeatureservice_oop
Aug 5, 2021
Merged

Move IAddMissingImportsFeatureService to use OOP#55318
ryzngard merged 4 commits intodotnet:mainfrom
ryzngard:features/addimportfeatureservice_oop

Conversation

@ryzngard
Copy link
Copy Markdown
Contributor

IAddMissingImportsFeatureService wraps IAddImportFeatureService with some logic for reducing fixes that will be taken. The work to get diagnostics was previously done inproc, which can be expensive. This moves that work to IAddImportFeatureService via a new GetUniqueFixesAsync api and utilizes OOP when possible

…us from getting semantic data inproc if OOP is enabled.
@ryzngard ryzngard requested a review from a team as a code owner July 31, 2021 21:49
@ghost ghost added the Area-IDE label Jul 31, 2021
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

I'll try to get to this this weekend. If I can't, long me on Monday! Thanks!

@ryzngard
Copy link
Copy Markdown
Contributor Author

I'll try to get to this this weekend. If I can't, long me on Monday! Thanks!

This can definitely wait until Monday @CyrusNajmabadi

1 similar comment
@ryzngard
Copy link
Copy Markdown
Contributor Author

I'll try to get to this this weekend. If I can't, long me on Monday! Thanks!

This can definitely wait until Monday @CyrusNajmabadi

@ryzngard
Copy link
Copy Markdown
Contributor Author

ryzngard commented Aug 3, 2021

ping @JoeRobich @CyrusNajmabadi if you have some time

@@ -52,15 +51,17 @@ public async Task<Document> AddMissingImportsAsync(Document document, AddMissing
public async Task<AddMissingImportsAnalysisResult> AnalyzeAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken)
{
// Get the diagnostics that indicate a missing import.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stale comment

Suggested change
// Get the diagnostics that indicate a missing import.

…ervice.cs

Co-authored-by: Joey Robichaud <jorobich@microsoft.com>
@ryzngard ryzngard enabled auto-merge August 5, 2021 07:09
@ryzngard ryzngard merged commit b57c1f8 into dotnet:main Aug 5, 2021
@ghost ghost added this to the Next milestone Aug 5, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
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.

4 participants