File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/jupyterlab-lsp/src/adapters/jupyterlab/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class LSPConnector extends DataConnector<
6868 }
6969
7070 protected get _has_kernel ( ) : boolean {
71- return this . options . session . kernel !== null ;
71+ return this . options . session && this . options . session . kernel !== null ;
7272 }
7373
7474 protected get _kernel_language ( ) : string {
@@ -131,8 +131,8 @@ export class LSPConnector extends DataConnector<
131131
132132 try {
133133 if (
134- this . _has_kernel &&
135134 this . _kernel_connector &&
135+ this . _has_kernel &&
136136 // TODO: this would be awesome if we could connect to rpy2 for R suggestions in Python,
137137 // but this is not the job of this extension; nevertheless its better to keep this in
138138 // mind to avoid introducing design decisions which would make this impossible
You can’t perform that action at this time.
0 commit comments