Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.81.1
- OS Version: Windows 11 (10.0.22621)
Steps to Reproduce:
- Make a new file and set the language to JavaScript or TypeScript.
- Paste this code:
function bug(
test // true = test test 123
) {}
- Put your cursor next to the second slash of the comment.
- Press backspace.
- Type
* twice. (This will automatically extend to /**| */ as JSDoc comments are marked as auto closing pairs)
- Move your cursor three characters to the right using the arrow keys (It should be after the closing slash).
- Press backspace three times.
Your code should now look like this:
function bug(
test /**| true = test test 123
) {}
Where | is the cursor position.
- Now press
End (Windows) or Cmd+RightArrow (Mac) to go to the end of the line.
- Type
*/.
- Enjoy the bug ;-)
If anyone can't reproduce it, this is the outcome for me:
