Closed brichet closed 1 year ago
Thanks @fcollonval, I updated the PR to include your suggestions.
This is backward-compatible, so an extension with autoStart: 'defer'
will still work with a previous version of lumino.
This is seen as autoStart: true
, the extension will not be deferred but will still be loaded.
removing a Map that is used for a Set.
Thanks @fcollonval, I can't remember why I first used a Map for this use case.
removing a Map that is used for a Set.
Thanks @fcollonval, I can't remember why I first used a Map for this use case.
It is not on you it was there from the start of the project :wink: . I think this was used to ensure id uniqueness back in the day where Set
did not exist.
This PR adds an optionalEDIT This PR allows to set the value 'defer' to thedeferred
flag to the plugin options.autoStart
argument of a plugin.This is related to https://github.com/jupyterlab/jupyterlab/issues/14576.
It also adds a function for activating all deferred plugins, preferably after application startup.
It does not modify the behavior of
autoStart
, which means that ifautoStart: false
, the plugin will not be activated using the dedicated function.