Skip to content

Commit

Permalink
Remove duplicated focus/blur handler which was causing issue caught by
Browse files Browse the repository at this point in the history
` Highlights are changed when moving cursor between cells` test
  • Loading branch information
krassowski committed Feb 24, 2024
1 parent f401568 commit 4779dc2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/jupyterlab-lsp/src/features/highlights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 4779dc2

Please sign in to comment.