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

Util function to convert from std::ops::Range<usize> to tower_lsp::lsp_types::Range #1

Open
kmaasrud opened this issue Mar 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kmaasrud
Copy link
Member

The former is simply an index-range, while the latter is a range of two Positions, each represented by line/col numbers. This does not seem to be as trivial as I hope to convert between.

To make things harder, the ranges mdzk give for each link is obviously based on the content of the note when parsing links. This content has all the front matter stripped. Not only that, but the note.content that is stored, is the CommonMark-form, which means that all wikilinks are stored as their CommonMark equivalent. This might need to be handled inside mdzk itself.

@kmaasrud kmaasrud added the enhancement New feature or request label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant