jupyterlab-tour 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__tests__/plugin.spec.js +3 -1
- package/lib/package.json +1 -1
- package/lib/plugin.js +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Notebook, NotebookModel, NotebookPanel } from '@jupyterlab/notebook';
|
|
2
2
|
import { CommandRegistry } from '@lumino/commands';
|
|
3
3
|
import { DocumentRegistry } from '@jupyterlab/docregistry';
|
|
4
|
+
import { ServerConnection } from '@jupyterlab/services';
|
|
4
5
|
import { CodeMirrorEditorFactory, CodeMirrorMimeTypeService, EditorLanguageRegistry } from '@jupyterlab/codemirror';
|
|
5
6
|
import { Signal } from '@lumino/signaling';
|
|
6
7
|
import 'jest';
|
|
@@ -13,7 +14,8 @@ function mockApp() {
|
|
|
13
14
|
return {
|
|
14
15
|
commands: new CommandRegistry(),
|
|
15
16
|
restored: Promise.resolve(),
|
|
16
|
-
docRegistry: new DocumentRegistry()
|
|
17
|
+
docRegistry: new DocumentRegistry(),
|
|
18
|
+
serviceManager: { serverSettings: ServerConnection.makeSettings() }
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
21
|
function aTour() {
|
package/lib/package.json
CHANGED
package/lib/plugin.js
CHANGED
|
@@ -28,11 +28,12 @@ const corePlugin = {
|
|
|
28
28
|
};
|
|
29
29
|
function activate(app, palette, menu, translator) {
|
|
30
30
|
const CONFIG_SECTION_NAME = corePlugin.id.replace(/[^\w]/g, '');
|
|
31
|
-
const { commands } = app;
|
|
31
|
+
const { commands, serviceManager } = app;
|
|
32
32
|
translator = translator !== null && translator !== void 0 ? translator : nullTranslator;
|
|
33
33
|
const restoreState = new PromiseDelegate();
|
|
34
34
|
const configReady = ConfigSection.create({
|
|
35
|
-
name: CONFIG_SECTION_NAME
|
|
35
|
+
name: CONFIG_SECTION_NAME,
|
|
36
|
+
serverSettings: serviceManager.serverSettings
|
|
36
37
|
}).catch(error => {
|
|
37
38
|
console.error('Failed to fetch state for jupyterlab-tour.', error);
|
|
38
39
|
});
|