-
-
Notifications
You must be signed in to change notification settings - Fork 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
Implementing folds for new tree-sitter #401
Implementing folds for new tree-sitter #401
Conversation
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.
So I won't pretend to fully understand every aspect of the code being used here.
But overall the code looks solid from a conventions standpoint, and am trusting you're testing it well.
Huge and appreciated effort here, just added a few comments to clean up in some small places.
Otherwise the tests:
- Editor tests on macOS is receiving 5 failures while we expect 0
- find-and-replace: 57 Failures, within the expected range
- symbols-view: 4 failures, but we expect only 2 failures (unsure why those would be failing here tbh)
- tree-view: 2 Failures, within the expected range
- Codacy Static Code Analysis has failed, but it seems it failed to properly analyze the commit, rather than any issues with it. So this can be ignored.
Otherwise this totally gets a lite approval from me, even though I'd like to read more and understand better what everything is doing here. But short of that happening I'm approving this getting merged.
Co-authored-by: confused_techie <dev@lhbasics.com>
…r into wasm-tree-sitter-folds
@confused-Techie |
I'll address the test failures on branch |
Just like it says on the title.
Tree-sitter, originally, have no implementation of folding. I basically copied this code from the NeoVIM implementation, which seems to be the most advanced on this implementation.