-
Notifications
You must be signed in to change notification settings - Fork 108
Fix several bugs #464
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
Fix several bugs #464
Conversation
|
Maybe adding a test for it? |
| if (is_rmarkdown(uri)) { | ||
| content <- purl(content) | ||
| } | ||
| # replace tab with a space since the width of a tab is 1 in LSP but 8 in getParseData(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf: https://github.com/wch/r-source/blob/8a0aaaa4feac8a97c211771bda8fd1454144ee3c/src/main/gram.y#L597
the tab size is not configurable at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for digging into the source!
|
Test cases are added. Any other suggestions? |
|
Thanks for working on it. LGTM. |
Closes #463
Hovering on the left part of a symbol might capture the symbol token with
document$detect_token()while the XPath captures the token on the left of the cursor, e.g. an operator, and thus shows the workspace definition of the captured token rather than the scope definition.This PR:
\twith a space inparse_document()to make the width of tab consistent between LSP andgetParseData().exprlistnodes appear in the XML syntax tree.