Skip to content

Commit 0c8520e

Browse files
committed
debug
1 parent 7326f7d commit 0c8520e

File tree

3 files changed

+406
-270
lines changed

3 files changed

+406
-270
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,17 @@
109109
},
110110
"jupyterlab": {
111111
"extension": true,
112-
"outputDir": "jupyterlite_terminal/labextension"
112+
"outputDir": "jupyterlite_terminal/labextension",
113+
"sharedPackages": {
114+
"@jupyterlite/server": {
115+
"bundled": false,
116+
"singleton": true
117+
},
118+
"@jupyterlite/contents": {
119+
"bundled": false,
120+
"singleton": true
121+
}
122+
}
113123
},
114124
"eslintIgnore": [
115125
"node_modules",

src/index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,20 @@ const terminalManagerPlugin: JupyterFrontEndPlugin<Terminal.IManager> = {
3737
}
3838
};
3939

40-
export default [terminalManagerPlugin];
40+
const debugPlugin: JupyterFrontEndPlugin<void> = {
41+
id: '@jupyterlite/terminal:pluginOther',
42+
autoStart: true,
43+
optional: [IServiceWorkerManager],
44+
activate: (
45+
app: JupyterFrontEnd,
46+
serviceWorkerManager?: IServiceWorkerManager,
47+
): void => {
48+
console.log('debugPlugin app:', app);
49+
console.log('debugPlugin IServiceWorkerManager:', serviceWorkerManager);
50+
51+
const browsingContextId = serviceWorkerManager?.browsingContextId;
52+
console.log('debugPlugin browsingContextId', browsingContextId);
53+
}
54+
}
55+
56+
export default [terminalManagerPlugin, debugPlugin];

0 commit comments

Comments
 (0)