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 container registrations update #10475

Merged
merged 8 commits into from
Jun 16, 2022
Merged

Conversation

rebornix
Copy link
Member

Re #10152

This is part of refactoring src/platform and the PR is mostly moving type registrations from src/platform into where they are implemented, i.e, kernel type should be registered in src/kernels.

  • 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).

@@ -7,11 +7,19 @@ import { IExtensionSingleActivationService, IExtensionSyncActivationService } fr
import { IServiceManager } from '../platform/ioc/types';
import { NotebookCellBangInstallDiagnosticsProvider } from './diagnosticsProvider';
import { IntellisenseProvider } from './intellisenseProvider.node';
import { LogReplayService } from './logReplayService.node';
Copy link
Member Author

Choose a reason for hiding this comment

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

logReplayService registered directly in intellisense

@@ -63,4 +64,9 @@ export function registerTypes(serviceManager: IServiceManager) {
undefined,
[IExtensionSingleActivationService]
);
serviceManager.addSingleton<IJupyterExtensionBanner>(
Copy link
Member Author

Choose a reason for hiding this comment

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

InteractiveShiftEnterBanner registered directly in src/interactive-window

@@ -86,4 +87,9 @@ export function registerTypes(serviceManager: IServiceManager, isDevMode: boolea
registerJupyterTypes(serviceManager, isDevMode);

serviceManager.addSingleton<CellOutputDisplayIdTracker>(CellOutputDisplayIdTracker, CellOutputDisplayIdTracker);

// debugging
serviceManager.addSingleton<IDebugLocationTracker>(IDebugLocationTracker, DebugLocationTrackerFactory, undefined, [
Copy link
Member Author

Choose a reason for hiding this comment

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

DebugLocationTrackerFactory registered in src/kernels.

@@ -89,4 +90,8 @@ export function registerTypes(serviceManager: IServiceManager) {
IExtensionSingleActivationService,
EmptyNotebookCellLanguageService
);

serviceManager.addSingleton<IDebuggingManager>(IDebuggingManager, DebuggingManager, undefined, [
Copy link
Member Author

Choose a reason for hiding this comment

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

DebuggingManager registered directly in src/notebooks


export function registerTypes(serviceManager: IServiceManager, _isDevMode: boolean) {
serviceManager.add<IWebviewViewProvider>(IWebviewViewProvider, WebviewViewProvider);
serviceManager.add<IWebviewPanelProvider>(IWebviewPanelProvider, WebviewPanelProvider);

Copy link
Member Author

Choose a reason for hiding this comment

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

DataViewer, Varaible Views and renderer registration moved out of src/platform

@rebornix rebornix self-assigned this Jun 16, 2022
@rebornix rebornix marked this pull request as ready for review June 16, 2022 19:28
@rebornix rebornix requested a review from a team as a code owner June 16, 2022 19:28
@rebornix rebornix merged commit 8e03cb4 into main Jun 16, 2022
@rebornix rebornix deleted the rebornix/registration-refactor branch June 16, 2022 19:56
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