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

Remove IActiveStatementSpanTracker #46826

Merged
merged 2 commits into from
Aug 27, 2020
Merged

Remove IActiveStatementSpanTracker #46826

merged 2 commits into from
Aug 27, 2020

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Aug 14, 2020

Instead of using a workspace service to retrieve the spans the EnC analyzer now takes a snapshot of the spans along with the corresponding document snapshot. Methods on EditAndContinueWorkspaceService are updated to take a callback that retrieves the spans for a given document on demand. This callback is called just before the service queries the EnC analyzer for an analysis of a document but at the same time during the EditAndContinueWorkspaceService method call that passed in the callback. This is important because in future PR each method of the service will be a remote call to OOP and the solution snapshot this method operates on is only going to be available to the OOP within the method call.

@tmat tmat force-pushed the rm-spans branch 3 times, most recently from 64a3d45 to 677e86f Compare August 26, 2020 23:30
@tmat tmat marked this pull request as ready for review August 27, 2020 17:03
@tmat tmat requested a review from a team as a code owner August 27, 2020 17:03
@tmat tmat mentioned this pull request Aug 27, 2020
5 tasks
@tmat tmat merged commit 7360622 into dotnet:master Aug 27, 2020
@ghost ghost added this to the Next milestone Aug 27, 2020
@sharwell sharwell deleted the rm-spans branch August 27, 2020 23:56
333fred added a commit to 333fred/roslyn that referenced this pull request Aug 28, 2020
* upstream/master: (220 commits)
  Don't load generators that target net framework explicitly. (dotnet#47100)
  Update src/Features/Core/Portable/UnifiedSuggestions/UnifiedSuggestedActionsSource.cs
  Clean up redundant code action filtering
  Remove IActiveStatementSpanTracker (dotnet#46826)
  Disable API analysis if telemetry is disabled
  Update src/Workspaces/Remote/ServiceHub/Services/CodeAnalysis/CodeAnalysisService_SemanticClassificationCache.cs
  Doc
  Compress two values.
  PR feedback
  Revert
  Revert
  Lint
  Fix formatting
  Fire and forget
  Fix mangling
  Ensure that local functions are also marked as invalid if their containing methods are generic.
  Fix dependency graph for AnalyzerRunner
  Add AnalyzerRunner target for net5.0
  Make VerifyForwardedTypes asynchronous
  Fix bug when "End statement" is used in single-line if (dotnet#47062)
  ...
@allisonchou allisonchou modified the milestones: Next, 16.8.P3 Aug 31, 2020
@tmat tmat mentioned this pull request Jan 12, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants