-
Notifications
You must be signed in to change notification settings - Fork 299
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
Conversation
@@ -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'; |
There was a problem hiding this comment.
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>( |
There was a problem hiding this comment.
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, [ |
There was a problem hiding this comment.
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, [ |
There was a problem hiding this comment.
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); | ||
|
There was a problem hiding this comment.
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
Re #10152
This is part of refactoring
src/platform
and the PR is mostly moving type registrations fromsrc/platform
into where they are implemented, i.e, kernel type should be registered insrc/kernels
.package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).