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

Implementing folds for new tree-sitter #401

Merged
merged 14 commits into from
Feb 28, 2023

Conversation

mauricioszabo
Copy link
Contributor

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.

Copy link
Member

@confused-Techie confused-Techie left a 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.

src/grammar-registry.js Outdated Show resolved Hide resolved
src/wasm-tree-sitter-language-mode.js Outdated Show resolved Hide resolved
mauricioszabo and others added 3 commits February 27, 2023 13:00
Co-authored-by: confused_techie <dev@lhbasics.com>
@mauricioszabo
Copy link
Contributor Author

@confused-Techie symbols-view might be a legitimate failure, I'll look at it

@mauricioszabo mauricioszabo merged commit 18b162c into feature/modernize-tree-sitter Feb 28, 2023
@mauricioszabo mauricioszabo deleted the wasm-tree-sitter-folds branch February 28, 2023 23:07
@mauricioszabo
Copy link
Contributor Author

I'll address the test failures on branch feature/modernize-tree-sitter :)

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.

2 participants