-
-
Notifications
You must be signed in to change notification settings - Fork 16
Fix end line comment not being included in node text #144
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
Conversation
Thank you, seems sane to me. I will probably squash this when merging. |
Yeah, go right ahead and squash, I naively assumed that squashing was the default merging strategy. |
Unfortunatly this regresses a bit With your MR
Main branch
I guess we should check those 8 cases |
I diffed the log files and these are the new regressions.
|
I compared the new regressions to the main branch and these new tests catch the regression:
I'm currently working on a fix. |
Running
|
LGTM, let's see if this still works in the server |
Currently when hovering over
Foo
in VS Code the result is this:The ending line comment is dropped.
However for types with multiple variants, such as the following:
The result when hovering is the following:
The first variant's line comment is included, but not the last one.
The following changes makes it so the ending line comment is included in the correct node text.
I've also verified that these changes have the correct behaviour in the elm-language-server repo with the following tests added to test/hoverProvider.test.ts and using a locally built tree-sitter-elm.wasm version: