-
Notifications
You must be signed in to change notification settings - Fork 295
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
Move NotebookControllerManager into the DI container for web #9690
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
eac3cb4
Preliminary work
rchiodo 54c4224
Fix build errors and unit tests
rchiodo 9bf7798
Turn on noImplicitOverrides and create the kernelProvider for web
rchiodo 5bdc8f6
Add cellhashprovider to web container
rchiodo ecb66b5
Fixup DI problem in node version
rchiodo ace93c1
Linter problem
rchiodo d38a8e0
Fix vscode test failures
rchiodo 49adb87
Fix launching jupyter server and smoke for web
rchiodo bd0382a
Fix unit tests on windows and add some missing bindings for web
rchiodo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,13 @@ | |
// Licensed under the MIT License. | ||
'use strict'; | ||
|
||
import { IExtensionSingleActivationService } from '../platform/activation/types'; | ||
import { INotebookLanguageClientProvider } from '../notebooks/types'; | ||
import { IExtensionSingleActivationService, IExtensionSyncActivationService } from '../platform/activation/types'; | ||
import { IServiceManager } from '../platform/ioc/types'; | ||
import { NotebookCellLanguageService } from './cellLanguageService'; | ||
import { NotebookCellBangInstallDiagnosticsProvider } from './diagnosticsProvider'; | ||
import { EmptyNotebookCellLanguageService } from './emptyNotebookCellLanguageService'; | ||
import { IntellisenseProvider } from './intellisenseProvider.node'; | ||
import { PythonKernelCompletionProvider } from './pythonKernelCompletionProvider.node'; | ||
import { PythonKernelCompletionProviderRegistration } from './pythonKernelCompletionProviderRegistration.node'; | ||
|
||
|
@@ -16,4 +21,15 @@ export function registerTypes(serviceManager: IServiceManager, _isDevMode: boole | |
IExtensionSingleActivationService, | ||
PythonKernelCompletionProviderRegistration | ||
); | ||
serviceManager.addSingleton<IExtensionSyncActivationService>( | ||
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. Moved a bunch of stuff here from the 'notebooks' serviceRegistry. Seemed weird that notebooks would register stuff from the intellisense folder. |
||
IExtensionSyncActivationService, | ||
NotebookCellBangInstallDiagnosticsProvider | ||
); | ||
serviceManager.addSingleton<NotebookCellLanguageService>(NotebookCellLanguageService, NotebookCellLanguageService); | ||
serviceManager.addBinding(NotebookCellLanguageService, IExtensionSingleActivationService); | ||
serviceManager.addSingleton<IExtensionSingleActivationService>( | ||
IExtensionSingleActivationService, | ||
EmptyNotebookCellLanguageService | ||
); | ||
serviceManager.addSingleton<INotebookLanguageClientProvider>(INotebookLanguageClientProvider, IntellisenseProvider); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As soon as I started importing these into the web bundle, this code failed to work.
I believe we don't need in the webbundle anymore.
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.
Yeah, I'm not seeing the node-fetch usage anymore in jupyterlab services.