Skip to content

Commit

Permalink
Adjust tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Jun 2, 2024
1 parent c30d5c6 commit 714f8a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 9 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ function on_frontend_msg(msg: KernelMessage.ICommMsgMsg) {
function connectSoSComm(panel: NotebookPanel, renew: boolean = false) {
let info = Manager.manager.get_info(panel);
if (info.sos_comm && !renew) return;

if (!panel.context.sessionContext.session) return;
try {
let sos_comm =
panel.context.sessionContext.session?.kernel.createComm('sos_comm');
Expand Down Expand Up @@ -765,8 +765,10 @@ export class SoSWidgets
version: ''
});
}
// connectSoSComm(panel);
// wrapExecutor(panel);
if (!info.sos_comm) {
connectSoSComm(panel);
wrapExecutor(panel);
}
updateCellStyles(panel, info);
showSoSWidgets(panel.node);
} else {
Expand All @@ -792,8 +794,10 @@ export class SoSWidgets
version: ''
});
}
// connectSoSComm(panel);
// wrapExecutor(panel);
if (!info.sos_comm) {
connectSoSComm(panel);
wrapExecutor(panel);
}
updateCellStyles(panel, info);
showSoSWidgets(panel.node);
} else {
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
"module": "esnext",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"preserveWatchOutput": true,
"resolveJsonModule": true,
"outDir": "lib",
"rootDir": "src",
"strict": true,
"strictNullChecks": true,
"strict": false,
"target": "ES2018"
},
"include": ["src/*"]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 714f8a1

Please sign in to comment.