VS Code's built in emmet "Wrap with abbreviation" doesn't wrap with tag correctly
See original GitHub issueFirst of all thank you Alexey for making this extension. Compared to VSCodeVim it’s just bliss. So fast! And supports original vim extensions!
What is wrong: Entering visual line, selecting some tags then wrapping the selection with tag using Emmet outputs some broken tags.
Repro gif
The weird thing is that it only breaks sometimes. I had to redo the operation from the gif 3 times until it broke. Here’s it working for some reason:
I later disabled all vscode extensions (enabled vscode-neovim obviously) and neovim plugins and checked again - emmet stilll did not wrap correctly.
VSCode info: Version: 1.41.0 […] Date: 2019-12-11T18:32:17.711Z OS: Linux x64 5.0.0-37-generic - ubuntu 18.04
vscode-neovim version: 0.0.42
Neovim info: Version: 0.4.3 Installed from AppImage
The workaround right now is to just:
- install vim-surround (vim extension) inside neovim
- select the text you want to wrap
- type
S<div>
I’m writing this issue so it’s known. I’m not sure if the goal of this project is to integrate vscode and neovim in such a way that most features are compatible OR should everything just be delegated to neovim (such as tag wrapping)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Yup. Works great now. Thanks a lot for taking the time to fix this one 😃
Notice the position of the “virtual” cursor on last line