Skip to content

Make VisualStudioDebuggeeModuleMetadataProvider lazy#45061

Merged
genlu merged 2 commits intodotnet:masterfrom
genlu:MakeEncServiceLazy
Jun 11, 2020
Merged

Make VisualStudioDebuggeeModuleMetadataProvider lazy#45061
genlu merged 2 commits intodotnet:masterfrom
genlu:MakeEncServiceLazy

Conversation

@genlu
Copy link
Member

@genlu genlu commented Jun 10, 2020

So opening document (ENC analyzer creating ENC service to get diagnostics) and typing (import completion create ENC service to check if we are during debug session) won't trigger the load of debugger related assemblies due to MEF composition

Fix https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1135045

@tmat

So open document and typing won't trigger the load of debugger related assemblies due to MEF composation
@genlu genlu requested a review from tmat June 10, 2020 23:40
@genlu genlu requested a review from a team as a code owner June 10, 2020 23:40

return _managedModuleInfoProvider;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

private IManagedModuleInfoProvider ManagedModuleInfoProvider
  => _managedModuleInfoProvider ??= _componentModel.GetService<IManagedModuleInfoProvider>();

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

:shipit:

@genlu genlu merged commit ce18b40 into dotnet:master Jun 11, 2020
@ghost ghost added this to the Next milestone Jun 11, 2020
@genlu genlu deleted the MakeEncServiceLazy branch June 11, 2020 22:13
@dibarbet dibarbet modified the milestones: Next, 16.7.P4 Jun 30, 2020
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