Skip to content

Conversation

@abap34
Copy link
Collaborator

@abap34 abap34 commented Jun 12, 2025

Go to Definition now works even when the cursor is placed just after an identifier, like:

func│(x)

If there's nothing suitable to the right of the cursor, the position just to the left (i.e., the right edge of offset - 1) is also checked.

Copy link
Owner

@aviatesk aviatesk left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing this quickly.

The test failure is due to JuliaLang/JuliaSyntax.jl#560, which requires some updates on the JL side. I confirmed this branch passes all the tests with the previous JS/JL commits.

We can pin JS/JL commits for now.

@aviatesk aviatesk merged commit 01325cf into master Jun 12, 2025
0 of 5 checks passed
@aviatesk aviatesk deleted the abap34/gotodef-rightedge branch June 12, 2025 05:35
aviatesk added a commit that referenced this pull request Jun 12, 2025
Properly support cases like:
```julia
let
    func│
end
```
aviatesk added a commit that referenced this pull request Jun 12, 2025
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.

3 participants