continue icon indicating copy to clipboard operation
continue copied to clipboard

fix: write docstring always

Open lyt213 opened this issue 6 months ago • 4 comments

Description

issue-2850306930 current: In VSCode, there is a function called "write a doc string" in the right-click menu, which passes a parameter "onlyOneInsertion" to streamEdit, which only allows receiving up to one line of duplicate content. image

Problem: Except for the first line, all other content will be delete by function reapplyWithMyersDiff,cause by wrong range image

fixed: when params onlyOneInsertion is true,set endrange = startrange

[ What changed? Feel free to be brief. ]

Checklist

  • [x] I've read the contributing guide
  • [x] The relevant docs, if any, have been updated or created
  • [x] The relevant tests, if any, have been updated or created

Screenshots

[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]

lyt213 avatar Jun 17 '25 03:06 lyt213

Deploy Preview for continuedev canceled.

Name Link
Latest commit 32b87f064aafe127f6cb4668451d00941acb021b
Latest deploy log https://app.netlify.com/projects/continuedev/deploys/6850de81d827c200087ab7ff

netlify[bot] avatar Jun 17 '25 03:06 netlify[bot]

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Jun 17 '25 03:06 github-actions[bot]

✨ No issues found! Your code is sparkling clean! ✨

recurseml[bot] avatar Jun 17 '25 03:06 recurseml[bot]

I have read the CLA Document and I hereby sign the CLA

lyt213 avatar Jun 17 '25 03:06 lyt213

@lyt213 closing this in favor of #6159 which just takes out the onlyOneInsertion param. Thanks for the contribution and for bumping this.

RomneyDa avatar Jul 02 '25 20:07 RomneyDa

See followup here https://github.com/continuedev/continue/pull/6415

RomneyDa avatar Jul 02 '25 20:07 RomneyDa