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

Handle priority change #1110

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Jan 8, 2025

References

This was originally brought up in jupyterlab/jupyterlab#17147.

Opening this PR early to start exploring a way to handle dynamic updates when the priorities change, and implement the following TODO:

// TODO: if priorities changed reset connections

Code changes

On settings update, check if priorities changed and if so, reset the connection.

User-facing changes

Quickly testing locally, this seems to produce the desired effect (lsp section update updated in the panel, and different completions based on which server is active):

jupyterlab-lsp-reload-connection.webm

Backwards-incompatible changes

Chores

  • linted
  • tested
  • documented
  • changelog entry

Copy link

github-actions bot commented Jan 8, 2025

Binder 👈 Launch a binder notebook on branch jtpio/jupyterlab-lsp/handle-priority-change

@jtpio jtpio mentioned this pull request Jan 8, 2025
@jtpio jtpio force-pushed the handle-priority-change branch from d163a21 to 71bec8d Compare January 9, 2025 10:03
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.

1 participant