Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't test for cursor position on mousemove if the widget adapter is not connected #1114

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

fcollonval
Copy link
Contributor

@fcollonval fcollonval commented Jan 13, 2025

References

Fixes #1113

Code changes

Bail early on mouse motion DOM event handler if the widget adapter is not connected.
This avoid doing DOM computation and displaying noisy log file on file not supporting LSP.

User-facing changes

Before

demo_noisy_message_.mp4

After

demo_fix_noisy_message.mp4

Backwards-incompatible changes

None

Chores

  • linted
  • tested
  • documented
  • changelog entry

Copy link

Binder 👈 Launch a binder notebook on branch fcollonval/jupyterlab-lsp/fcollonval/issue1113

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fcollonval!

@krassowski krassowski changed the title Don't test for cursor position on mousemove if the widget adapter is not connected Don't test for cursor position on mousemove if the widget adapter is not connected Jan 14, 2025
@krassowski krassowski merged commit b2eb9b1 into jupyter-lsp:main Jan 14, 2025
9 of 16 checks passed
@fcollonval fcollonval deleted the fcollonval/issue1113 branch January 14, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Noisy log message
2 participants