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

flip symbol range in LSP goto commands #6794

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

pascalkuthe
Copy link
Member

In #5986 the various LSP based goto commands were changed to select the entire symbol range instead of just placing the cursor at the symbol start to bring them in line with other pickers like diagnostics/symbol picker. However, in the symbol picker and the diagnostic picker the range sent by the LSP is flipped, so the cursor is placed at the start of the range (the start of the function instead of the end for example). This is very useful when jumping to the definition of large symbols like modules/classes or function.

This PR adjusts the LSP goto commands to match the other LSP pickers in this regard. This behavior is closer to the old behaviour (which paced the cursor at the start of the symbol too but just didn't add the remaining selection) and I therefore added it to the bugfix release sice this feels like a (very minor) usability regression to me.

@pascalkuthe pascalkuthe added this to the 23.03.1 milestone Apr 17, 2023
@pascalkuthe pascalkuthe added C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much A-language-server Area: Language server client S-waiting-on-review Status: Awaiting review from a maintainer. labels Apr 17, 2023
@the-mikedavis
Copy link
Member

(Prior discussion was in #6500 (comment))

@archseer archseer merged commit c3e2db7 into helix-editor:master Apr 21, 2023
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants