Skip to content

Fixed jump to definition for notebooks that have special characters in filename and position for external jumps #1128

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

Merged
merged 8 commits into from
Jun 28, 2025

Conversation

darpan097
Copy link
Contributor

@darpan097 darpan097 commented Jun 12, 2025

References

fixes #1124, #1130

Works for me locally, though I had to change some things in the binder files and setup.cfg to make the local setup work. I did not commit these changes.

Code changes

  • Handle URI decode for special characters
  • Set cursor position to 'scroll' to the correct position in addition to selecting the jump target for external jumps.

User-facing changes

None

Backwards-incompatible changes

Chores

  • linted
  • tested
  • documented
  • changelog entry

Copy link

Binder 👈 Launch a binder notebook on branch darpan097/jupyterlab-lsp/feature/fix-code-jump

@darpan097 darpan097 marked this pull request as draft June 12, 2025 13:18
@darpan097 darpan097 changed the title Fixed jump to definition for notebooks that have special characters in filename Fixed jump to definition for notebooks that have special characters in filename and position for external jumps Jun 16, 2025
@darpan097 darpan097 marked this pull request as ready for review June 16, 2025 06:57
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.

Thank you @darpan097!

@krassowski krassowski merged commit acc679b into jupyter-lsp:main Jun 28, 2025
12 of 21 checks passed
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.

Jump to definition within the same notebook doesn't work if notebook name has a comma in it
2 participants