@@ -21,6 +21,7 @@ import { LSPConnection } from '../../../connection';
21
21
import { Session } from '@jupyterlab/services' ;
22
22
import ICompletionItemsResponseType = CompletionHandler . ICompletionItemsResponseType ;
23
23
24
+
24
25
/**
25
26
* A LSP connector for completion handlers.
26
27
*/
@@ -34,6 +35,9 @@ export class LSPConnector
34
35
private _kernel_and_context_connector : CompletionConnector ;
35
36
protected options : LSPConnector . IOptions ;
36
37
38
+ // signal that this is the new type connector (providing completion items)
39
+ responseType = ICompletionItemsResponseType ;
40
+
37
41
virtual_editor : VirtualEditor ;
38
42
private trigger_kind : CompletionTriggerKind ;
39
43
// TODO expose this in user settings
@@ -307,8 +311,8 @@ export class LSPConnector
307
311
// For some reason the _jupyter_types_experimental list has two entries
308
312
// for each match, with one having a type of "<unknown>". Discard those
309
313
// and use undefined to indicate an unknown type.
310
- labelSet . has ( item . label ) // ||
311
- // (item.type && item.type === '<unknown>')
314
+ labelSet . has ( item . label ) ||
315
+ ( item . type && item . type === '<unknown>' )
312
316
) {
313
317
return ;
314
318
}
@@ -333,8 +337,6 @@ export class LSPConnector
333
337
return Promise . resolve ( undefined ) ;
334
338
}
335
339
336
- responseType : typeof ICompletionItemsResponseType ;
337
-
338
340
save ( id : CompletionHandler . IRequest , value : void ) : Promise < any > {
339
341
return Promise . resolve ( undefined ) ;
340
342
}
0 commit comments