continue
continue copied to clipboard
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? ]