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
Emmet wrapping with multiple selections in single line is extremely buggy and unreliable #49138
bugIssue identified by VS Code Team member as probable bugemmetEmmet related issueshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded
changed the title [-]Emmet wrapping with multiple selections is extremely buggy and unreliable[/-][+]Emmet wrapping with multiple selections in single line is extremely buggy and unreliable[/+]on May 6, 2018
Thanks for reporting and for the detailed example!
I've noticed that the issue is restricted to when the multiple selections are in a single line.
Can you confirm?
Ian Sanders (@iansan5653) I have pushed a change to disable the live preview feature when there are multiple selections in the same line. This should unblock you from using the wrap feature.
G.M. Hurovich (@gushuro) The logic that calculates the preview range is not quite right when there are multiple selections in the same line and is causing this issue.
Marking this issue as "help-wanted". For folks who want to try and fix the preview feature for such case, undo the changes done in 57d9f26 to get started
Ramya Rao (@ramya-rao-a) I can confirm -- if the selection consists of several lines, each with a single word/phrase selected, it works fine. If the selection consists of multiple words on the same line, even if it also consists of several lines, then the bug occurs. However, the bug doesn't occur on any lines that just have a single selection.
bugIssue identified by VS Code Team member as probable bugemmetEmmet related issueshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded
Activity
iansan5653 commentedon May 3, 2018
Here's an example:
The quick brown fox jumps over the lazy dog.quickfoxandthe lazy. (By holding down alt).b, backspace,a, backspace,p, backspace, esc.The quick brown fox jumps over the lazy dog., but actual result is:[-]Emmet wrapping with multiple selections is extremely buggy and unreliable[/-][+]Emmet wrapping with multiple selections in single line is extremely buggy and unreliable[/+]ramya-rao-a commentedon May 6, 2018
Thanks for reporting and for the detailed example!
I've noticed that the issue is restricted to when the multiple selections are in a single line.
Can you confirm?
Disable live preview of wrap feature when multiple selections in same…
ramya-rao-a commentedon May 6, 2018
Ian Sanders (@iansan5653) I have pushed a change to disable the live preview feature when there are multiple selections in the same line. This should unblock you from using the wrap feature.
G.M. Hurovich (@gushuro) The logic that calculates the preview range is not quite right when there are multiple selections in the same line and is causing this issue.
Marking this issue as "help-wanted". For folks who want to try and fix the preview feature for such case, undo the changes done in 57d9f26 to get started
iansan5653 commentedon May 7, 2018
Ramya Rao (@ramya-rao-a) I can confirm -- if the selection consists of several lines, each with a single word/phrase selected, it works fine. If the selection consists of multiple words on the same line, even if it also consists of several lines, then the bug occurs. However, the bug doesn't occur on any lines that just have a single selection.
ramya-rao-a commentedon May 7, 2018
Ian Sanders (@iansan5653) Thanks for confirming. The latest Insiders has the live preview of the wrap feature disabled for such cases. Give it a try.
jeanp413 commentedon May 8, 2018
Ramya Rao (@ramya-rao-a) I'll take this up
gushuro commentedon May 8, 2018
Good catch! Hadn't thought about this particular case.
Jean Pierre (@jeanp413) let me know if you need any guidance through the code.
Fixes microsoft#49138
ramya-rao-a commentedon May 14, 2018
Fixed by Jean Pierre (@jeanp413) with #49501
Fix for #49138 (#49501)