-
Notifications
You must be signed in to change notification settings - Fork 300
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
Changes from all commits
1cb5aca
6a05e26
1080d41
b4dfd73
64637ed
429bb53
212c6e8
28181e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
import { ITracebackFormatter } from '../kernels/types'; | ||
import { IExtensionSyncActivationService, IExtensionSingleActivationService } from '../platform/activation/types'; | ||
import { IDataScienceCommandListener } from '../platform/common/types'; | ||
import { IDataScienceCommandListener, IJupyterExtensionBanner } from '../platform/common/types'; | ||
import { IServiceManager } from '../platform/ioc/types'; | ||
import { CommandRegistry } from './commands/commandRegistry'; | ||
import { CodeGeneratorFactory } from './editor-integration/codeGeneratorFactory'; | ||
|
@@ -28,6 +28,7 @@ import { InteractiveWindowTracebackFormatter } from './outputs/tracebackFormatte | |
import { IInteractiveWindowDebugger, IInteractiveWindowDebuggingManager, IInteractiveWindowProvider } from './types'; | ||
import { InteractiveWindowDebugger } from './debugger/interactiveWindowDebugger.node'; | ||
import { InteractiveWindowDebuggingManager } from './debugger/jupyter/debuggingManager'; | ||
import { BANNER_NAME_INTERACTIVE_SHIFTENTER, InteractiveShiftEnterBanner } from './shiftEnterBanner'; | ||
|
||
export function registerTypes(serviceManager: IServiceManager) { | ||
serviceManager.addSingleton<IInteractiveWindowProvider>(IInteractiveWindowProvider, InteractiveWindowProvider); | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
IJupyterExtensionBanner, | ||
InteractiveShiftEnterBanner, | ||
BANNER_NAME_INTERACTIVE_SHIFTENTER | ||
); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,14 @@ import { KernelProvider } from './kernelProvider.web'; | |
import { KernelFinder } from './kernelFinder.web'; | ||
import { PreferredRemoteKernelIdProvider } from './jupyter/preferredRemoteKernelIdProvider'; | ||
import { MultiplexingDebugService } from './debugger/multiplexingDebugService'; | ||
import { IJupyterDebugService } from './debugger/types'; | ||
import { IDebugLocationTracker, IDebugLocationTrackerFactory, IJupyterDebugService } from './debugger/types'; | ||
import { DebuggerVariables } from './variables/debuggerVariables'; | ||
import { IJupyterVariables, IKernelVariableRequester } from './variables/types'; | ||
import { KernelVariables } from './variables/kernelVariables'; | ||
import { JupyterVariables } from './variables/jupyterVariables'; | ||
import { PythonVariablesRequester } from './variables/pythonVariableRequester'; | ||
import { CellOutputDisplayIdTracker } from './execution/cellDisplayIdTracker'; | ||
import { DebugLocationTrackerFactory } from './debugger/debugLocationTrackerFactory'; | ||
|
||
@injectable() | ||
class RawNotebookSupportedService implements IRawNotebookSupportedService { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
IDebugLocationTrackerFactory | ||
]); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ import { CondaControllerRefresher } from './controllers/condaControllerRefresher | |
import { RemoteKernelControllerWatcher } from './controllers/remoteKernelControllerWatcher'; | ||
import { ITracebackFormatter } from '../kernels/types'; | ||
import { NotebookTracebackFormatter } from './outputs/tracebackFormatter'; | ||
import { IJupyterDebugService } from '../kernels/debugger/types'; | ||
import { IDebuggingManager, IJupyterDebugService } from '../kernels/debugger/types'; | ||
import { Identifiers } from '../platform/common/constants'; | ||
import { JupyterDebugService } from './debugger/jupyterDebugService.node'; | ||
import { NotebookIPyWidgetCoordinator } from './controllers/notebookIPyWidgetCoordinator'; | ||
|
@@ -29,6 +29,7 @@ import { JupyterServerSelectorCommand } from './serverSelector'; | |
import { InterpreterPackageTracker } from './telemetry/interpreterPackageTracker'; | ||
import { NotebookCellLanguageService } from './languages/cellLanguageService'; | ||
import { EmptyNotebookCellLanguageService } from './languages/emptyNotebookCellLanguageService'; | ||
import { DebuggingManager } from './debugger/debuggingManager'; | ||
|
||
export function registerTypes(serviceManager: IServiceManager) { | ||
serviceManager.addSingleton<IExtensionSingleActivationService>(IExtensionSingleActivationService, RemoteSwitcher); | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
IExtensionSingleActivationService | ||
]); | ||
} |
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 inintellisense