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

Adds support for disabling extensions #90

Merged
merged 9 commits into from
Feb 4, 2022

Conversation

hbcarlos
Copy link
Contributor

@hbcarlos hbcarlos commented Jan 6, 2022

Adds support for disabling extensions.
Removes mime extensions
Pins typescript to ~4.1.3

@hbcarlos hbcarlos marked this pull request as draft January 6, 2022 10:24
@hbcarlos hbcarlos requested a review from fcollonval February 4, 2022 13:19
@hbcarlos hbcarlos marked this pull request as ready for review February 4, 2022 13:19
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Hey @hbcarlos here are some comments

/**
* Construct a new App object.
*
* @param options The instantiation options for an application.
*/
constructor(options: App.IOptions = {}) {
constructor(options: App.IOptions = { shell: new Shell() }) {
Copy link
Member

Choose a reason for hiding this comment

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

This is unneeded as L38 gets us covered.

Suggested change
constructor(options: App.IOptions = { shell: new Shell() }) {
constructor(options: App.IOptions = {}) {

@@ -1,5 +1,5 @@
[build-system]
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=3.0"]
requires = ["jupyter_packaging~=0.10,<2"]
Copy link
Member

Choose a reason for hiding this comment

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

🚀

@@ -24,12 +25,14 @@ export type QuetzFrontEndPlugin<T> = IPlugin<QuetzFrontEnd, T>;
* App is the main application class. It is instantiated once and shared.
*/
export class App extends Application<Shell> {
private _info: JupyterLab.IInfo = JupyterLab.defaultInfo;
Copy link
Member

Choose a reason for hiding this comment

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

I would not reuse JupyterLab.IInfo as is because for now I don't see the point of having the attribute other than deferred and disabled.

@hbcarlos
Copy link
Contributor Author

hbcarlos commented Feb 4, 2022

Thanks for the review, @fcollonval! I have pushed a commit to apply the changes.

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Thanks @hbcarlos

@fcollonval fcollonval merged commit 224c48b into mamba-org:main Feb 4, 2022
@hbcarlos hbcarlos deleted the extensions branch February 4, 2022 16:32
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