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

Add support for "[uint, uint]" as label #392

Closed
wants to merge 0 commits into from

Conversation

andlrc
Copy link
Contributor

@andlrc andlrc commented Sep 13, 2023

Closes #391

autoload/lsp/signature.vim Outdated Show resolved Hide resolved
@andlrc andlrc force-pushed the sig-params-label-uint-uint branch from c79ddce to 69ad3d3 Compare September 14, 2023 08:07
hllen = label->len()
startcol = text->stridx(label)
else
startcol = label[0]
Copy link
Owner

Choose a reason for hiding this comment

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

According to the spec:

The offsets are based on a UTF-16 string representation as Position and Range does.

So this needs a conversion to a UTF-8 offset.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'll not have time until next week to look at this. I also think it's worth investigating if ClientCapabilities.general.positionEncodings should be taken into account.

@andlrc andlrc closed this Mar 11, 2024
@andlrc andlrc force-pushed the sig-params-label-uint-uint branch from 69ad3d3 to 0b9bba0 Compare March 11, 2024 20:13
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.

svelteserver errors for open brackets (
3 participants