You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[html] Mirror cursor devolves into multi-cursor when undoing (ctrl-z) #87732
bugIssue identified by VS Code Team member as probable bugeditor-synced-regionIssues related to synced region functionality in editorhtmlHTML support issuesverifiedVerification succeeded
Place cursor at the end of the open tag and add a space <div ></div>
Undo (ctrl-z) once adds a space to close tag (unexpected, but probably an implementation detail of the space special case 🤷♂) <div ></div >
Undo (ctrl-z) twice removes the space from the end of both tags <div></div>
Add a space and start typing <div class="aClass"></div class="aClass">
Expected: <div class="aClass"></div>
Basically, after the second undo, you're left with a normal multi-cursor. Even if you move the cursor around the document and keep typing the multi-cursor follows.
VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.17763
System Info
Item
Value
CPUs
Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz (12 x 2712)
That's a fair question. I guess its just a habit I've built over time. I like to think that I undo my typos instead of deleting so that unwanted changes aren't left on the "undo stack", but honestly it's probably just a weird quirk that I do.
In fairness this is probably pretty small edge case but something I noticed and the resulting functionality seemed weird so I reported it.
Reacted by Jeferson Duwe and Guilherme Taffarel Bergamin
In tomorrow's insiders html.mirrorCursorOnMatchingTag is replaced with editor.renameOnType. The new implementation fixes this issue. You can find more details here: #88424 (comment)
bugIssue identified by VS Code Team member as probable bugeditor-synced-regionIssues related to synced region functionality in editorhtmlHTML support issuesverifiedVerification succeeded
Activity
octref commentedon Jan 8, 2020
Good catch, although I'm wondering why you would use Cmd-Z instead of backspace in this case.
rlyczynski commentedon Jan 8, 2020
That's a fair question. I guess its just a habit I've built over time. I like to think that I undo my typos instead of deleting so that unwanted changes aren't left on the "undo stack", but honestly it's probably just a weird quirk that I do.
In fairness this is probably pretty small edge case but something I noticed and the resulting functionality seemed weird so I reported it.
octref commentedon Jan 30, 2020
This will be fixable if we do #88424.
octref commentedon Mar 18, 2020
In tomorrow's insiders
html.mirrorCursorOnMatchingTagis replaced witheditor.renameOnType. The new implementation fixes this issue. You can find more details here: #88424 (comment)