Files
vscode/extensions/emmet
Gus Hurovich 2e746d8118 Emmet - Wrap with abbreviation with live preview (#45092)
* Revert "Fix for Emmet's wrap with abbreviation inserting extra spaces (#43345)"

This reverts commit 7420a04c64.

* 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
2018-03-06 17:11:07 -08:00
..
2018-03-01 15:25:43 -08:00
2017-11-14 10:04:36 +01:00
2018-02-27 17:40:37 -08:00

Emmet integration in Visual Studio Code

Features

See Emmet in Visual Studio Code

How to build and run from source?

Read the basics about extension authoring from Extending Visual Studio Code

  • Read Build and Run VS Code from Source to get a local dev set up running for VS Code
  • Open the extensions/emmet folder in the vscode repo in VS Code
  • Press F5 to start debugging

Running tests

Tests for Emmet extension are run as integration tests as part of VS Code.

  • Read Build and Run VS Code from Source to get a local dev set up running for VS Code
  • Run ./scripts/test-integration.sh to run all the integrations tests that include the Emmet tests.