File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/jupyterlab-lsp/src/features/completion Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ export class EnhancedKernelCompleterProvider extends KernelCompleterProvider {
92
92
}
93
93
94
94
const manager = this . options . connectionManager ;
95
+ if ( ! context . widget . hasOwnProperty ( 'path' ) ) {
96
+ // there is no path for Console as it is not a DocumentWidget
97
+ return upstream ;
98
+ }
95
99
const widget = context . widget as IDocumentWidget ;
96
100
const adapter = manager . adapters . get ( widget . context . path ) ;
97
101
Original file line number Diff line number Diff line change @@ -300,6 +300,10 @@ export class CompletionProvider implements ICompletionProvider<CompletionItem> {
300
300
return false ;
301
301
}
302
302
const manager = this . options . connectionManager ;
303
+ if ( ! context . widget . hasOwnProperty ( 'path' ) ) {
304
+ // there is no path for Console as it is not a DocumentWidget
305
+ return false ;
306
+ }
303
307
const widget = context . widget as IDocumentWidget ;
304
308
const adapter = manager . adapters . get ( widget . context . path ) ;
305
309
if ( ! adapter ) {
You can’t perform that action at this time.
0 commit comments