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

Service registration refactor part 2 #10479

Merged
merged 9 commits into from
Jun 16, 2022
Merged

Conversation

rebornix
Copy link
Member

@rebornix rebornix commented Jun 16, 2022

Re #10152. Continue to move service registration into feature component from platform. This PR itself is a bit large but they are mostly moving files.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for feature-requests.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).


export function registerTypes(serviceManager: IServiceManager, _isDevMode: boolean) {
serviceManager.addSingleton<IExtensionSingleActivationService>(IExtensionSingleActivationService, GlobalActivation);
Copy link
Member Author

Choose a reason for hiding this comment

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

GlobalActivation, ExtensionRecommendationService, ActiveEditorContextService, AmlComputeContext, ImportTracker are now registered in extension-side, instead of src/platform


export function registerTypes(serviceManager: IServiceManager, isDevMode: boolean) {
serviceManager.addSingleton<IExtensionSingleActivationService>(IExtensionSingleActivationService, Activation);

serviceManager.addSingleton<IExtensionSyncActivationService>(
Copy link
Member Author

Choose a reason for hiding this comment

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

PortAttributesProviders registration moved from platform to kernels.

@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
Copy link
Member Author

Choose a reason for hiding this comment

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

Kernel related errors are moved into src/kernels/errors instead of having them in src/platform.

@rebornix rebornix marked this pull request as ready for review June 16, 2022 21:47
@rebornix rebornix requested a review from a team as a code owner June 16, 2022 21:47
@rebornix rebornix self-assigned this Jun 16, 2022
@rebornix rebornix merged commit d8f6572 into main Jun 16, 2022
@rebornix rebornix deleted the rebornix/registration-refactor-2 branch June 16, 2022 22:45
@rebornix
Copy link
Member Author

Thanks @rchiodo !

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.

2 participants