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

Fix find entry via treesitter #124

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

hsanson
Copy link
Contributor

@hsanson hsanson commented Mar 13, 2024

WHAT

Fix issue where the find entries method was returning two nodes instead of one.

WHY

HOW

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Linter
  • Tests
  • Review comments
  • Security

hsanson and others added 4 commits March 10, 2024 14:03
* upstream/main:
  chore(doc): auto generate docs
Lua index starts on 1 so we were accidentally returing the line range of
the current node plus one line of the next node.
Copy link

changeset-bot bot commented Mar 13, 2024

⚠️ No Changeset found

Latest commit: 0a45ceb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

sweep-ai bot commented Mar 13, 2024

Apply Sweep Rules to your PR?

  • Apply: All docstrings and comments should be up to date.
  • Apply: Commit messages should be descriptive and provide a clear explanation of the changes made.
  • Apply: Author names should be consistent and use proper formatting.
  • Apply: Code should be properly formatted and follow a consistent style guide.
  • Apply: There should be no unnecessary whitespace or trailing spaces in the code.
  • Apply: Variable and function names should be meaningful and descriptive.

This is an automated message generated by Sweep AI.

@jellydn jellydn changed the base branch from main to canary March 14, 2024 02:04
@jellydn
Copy link
Owner

jellydn commented Mar 14, 2024

Thanks @hsanson 🙏 Let me try.

@jellydn jellydn merged commit 307e582 into jellydn:canary Mar 14, 2024
7 checks passed
jellydn added a commit that referenced this pull request Mar 14, 2024
* Fix HurlRunnterToEntry using treesitter (#116)

* chore(doc): auto generate docs

* chore(test): add API tests for dog breeds

* Fix find entry via treesitter (#124)

* Fix HurlRunnterToEntry using treesitter

* chore(doc): auto generate docs

* Fix find entry method returing two nodes range.

Lua index starts on 1 so we were accidentally returing the line range of
the current node plus one line of the next node.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor(http_utils): make find_hurl_entry_positions_in_buffer a module function

---------

Co-authored-by: Horacio Sanson <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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