Skip to content

Commit 0097bbf

Browse files
committed
Do not check item inset text if empty
1 parent 2a9068f commit 0097bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jupyterlab-lsp/src/features/completion/completion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class CompletionLabIntegration implements IFeatureLabIntegration {
243243
this.current_index
244244
];
245245

246-
if (active.insertText != item.insertText) {
246+
if (!item || active.insertText != item.insertText) {
247247
return;
248248
}
249249

0 commit comments

Comments
 (0)