fix: write docstring always
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.
Problem: Except for the first line, all other content will be delete by function reapplyWithMyersDiff,cause by wrong range
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? ]
Deploy Preview for continuedev canceled.
| Name | Link |
|---|---|
| Latest commit | 32b87f064aafe127f6cb4668451d00941acb021b |
| Latest deploy log | https://app.netlify.com/projects/continuedev/deploys/6850de81d827c200087ab7ff |
All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.
✨ No issues found! Your code is sparkling clean! ✨
I have read the CLA Document and I hereby sign the CLA
@lyt213 closing this in favor of #6159 which just takes out the onlyOneInsertion param. Thanks for the contribution and for bumping this.
See followup here https://github.com/continuedev/continue/pull/6415