File tree Expand file tree Collapse file tree 3 files changed +406
-270
lines changed Expand file tree Collapse file tree 3 files changed +406
-270
lines changed Original file line number Diff line number Diff line change 109
109
},
110
110
"jupyterlab" : {
111
111
"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
+ }
113
123
},
114
124
"eslintIgnore" : [
115
125
" node_modules" ,
Original file line number Diff line number Diff line change @@ -37,4 +37,20 @@ const terminalManagerPlugin: JupyterFrontEndPlugin<Terminal.IManager> = {
37
37
}
38
38
} ;
39
39
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 ] ;
You can’t perform that action at this time.
0 commit comments