continue icon indicating copy to clipboard operation
continue copied to clipboard

fix: write docstring always

Open lyt213 opened this issue 4 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