Skip to content

Fix/extract function selection args#3174

Open
jramosg wants to merge 4 commits intoBetterThanTomorrow:devfrom
jramosg:fix/extract-function-selection-args
Open

Fix/extract function selection args#3174
jramosg wants to merge 4 commits intoBetterThanTomorrow:devfrom
jramosg:fix/extract-function-selection-args

Conversation

@jramosg
Copy link
Copy Markdown
Contributor

@jramosg jramosg commented Apr 15, 2026

What has changed?

Ensure that the 'extract-function' command appends selection end
coordinates to the parameters. This prevents IndexOutOfBoundsException
when the command is called.

Fixes #

My Calva PR Checklist

I have:

  • Read How to Contribute.
  • Directed this pull request at the dev branch. (Or have specific reasons to target some other branch.)
  • Made sure I have changed the PR base branch, so that it is not published. (Sorry for the nagging.)
  • Made sure there is an issue registered with a clear problem statement that this PR addresses, (created the issue if it was not present).
    • Updated the [Unreleased] entry in CHANGELOG.md, linking the issue(s) that the PR is addressing.
  • Figured if anything about the fix warrants tests on Mac/Linux/Windows/Remote/Whatever, and either tested it there if so, or mentioned it in the PR.
  • Added to or updated docs in this branch, if appropriate
  • Tests
    • Tested the particular change
    • Figured if the change might have some side effects and tested those as well.
  • Formatted all JavaScript and TypeScript code that was changed. (use the prettier extension or run npm run prettier-format)
  • Confirmed that there are no linter warnings or errors (use the eslint extension, run npm run eslint before creating your PR, or run npm run eslint-watch to eslint as you go).

jramosg added 4 commits April 15, 2026 21:29
Ensure that the 'extract-function' command appends selection end
coordinates to the parameters. This prevents IndexOutOfBoundsException
when the command is called with insufficient arguments, allowing it
to work correctly regardless of whether a region is selected.
@jramosg jramosg requested a review from PEZ April 15, 2026 19:34
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for calva-docs ready!

Name Link
🔨 Latest commit 73cc379
🔍 Latest deploy log https://app.netlify.com/projects/calva-docs/deploys/69dfe840073fc40008771e8e
😎 Deploy Preview https://deploy-preview-3174--calva-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant