Emmet - Wrap with abbreviation with live preview (#45092)
* Revert "Fix for Emmet's wrap with abbreviation inserting extra spaces (#43345)" This reverts commit 7420a04c. * Adding ability for emmet to wrap with abbreviation in real time. Currently it's only working for single cursor. * Fixes to wrap in real time: - Removed flickering when typing abbreviation - Removed tabstops - Fixed bug when wrapping multiline text * Fixes to a few issues. - Added checks for not reverting previews more times than needed, that was causing extra text to be deleted. - Fixed issue when wrapping nodes with multiple level of indentation. - Removed all the undo commands. Now all the logic of going back to the original state is handled by revertPreview. * Ammend for previous revert * Reapplying reverted commit, fixing the bug for this branch's version Refactoring some of the code, now a single object contains the current and original ranges, as well as the original content to wrap * Adding multicursor support * Renaming, refactoring and other stuff * More refactorings * More renaming and refactoring * Replacing placeholders when previewing, simplifying the extracting of preceeding whitespace, added a check for validity of expandedtext on each selection. * More refactoring * Adding a comment. * Readding test removed by mistake. * Refactoring * Carefully reverting changes in yarn.lock * carefully but right
Showing
想要评论请 注册 或 登录