From 4779dc2b0957f78caa8ffc5805f2a7d7ffebc2e0 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Sat, 24 Feb 2024 19:30:44 +0000 Subject: [PATCH] Remove duplicated focus/blur handler which was causing issue caught by ` Highlights are changed when moving cursor between cells` test --- packages/jupyterlab-lsp/src/features/highlights.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/jupyterlab-lsp/src/features/highlights.ts b/packages/jupyterlab-lsp/src/features/highlights.ts index 5aba67258..4694de1c2 100644 --- a/packages/jupyterlab-lsp/src/features/highlights.ts +++ b/packages/jupyterlab-lsp/src/features/highlights.ts @@ -95,11 +95,7 @@ export class HighlightsFeature extends Feature { const { editor: editorAccessor, widgetAdapter: adapter } = factoryOptions; const updateListener = EditorView.updateListener.of(viewUpdate => { - if ( - viewUpdate.docChanged || - viewUpdate.selectionSet || - viewUpdate.focusChanged - ) { + if (viewUpdate.docChanged || viewUpdate.selectionSet) { this.onCursorActivity(editorAccessor, adapter).catch( this.console.warn );