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

Hovers and completions break when the cursor is above whitespace #38

Open
thinker227 opened this issue Jul 2, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@thinker227
Copy link
Owner

Hovers and completions in the language server break when the cursor position is in what is technically whitespace. This is especially annoying when the cursor position is one past the end of a node (foo|) which makes completions completely unusable.

This also causes misplaced symbol completions because the node under the cursor might technically be in the surrounding block.

{
    print(x);
    |
    print(y);
}

Introducing whitespace-aware tokens (#29) would likely fix this issue because the span of nodes would leech off any associated whitespace.

@thinker227 thinker227 added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant