microsoft / vscode-htmltagwrap

Wraps a chunk of HTML code in tags
Other
24 stars 18 forks source link

HTML Tag wrap selection breaks when selection is empty #6

Open hmigneron opened 7 years ago

hmigneron commented 7 years ago

When the selection is empty, tag selection doesn't work properly : the closing tag appears before the opening tag.

empty-selection

VSCode : 1.6.1 Windows 8

hmigneron commented 7 years ago

I had a look at the code and will probably work on a fix for this. I should be submitting a PR shortly.

If you're OK with it, I would also like to take a stab at the multiple cursors feature at the same time : (from the readme) :

Should we support getSelections() allowing multiple selections to be wrapped?

I think this would be a great feature. Really something I miss from Sublime Text.

bgashler1 commented 6 years ago

This issue was moved to bgashler1/vscode-htmltagwrap#7