Commit Graph

654 Commits

Author SHA1 Message Date
Gus Hurovich
0caed6b927 Emmet in Interactive Playground (#45434)
Emmet commands will no longer appear in non-editor contexts.
2018-03-09 12:53:12 -08:00
Gus Hurovich
3817c899ca Adding Emmet preference for changing fuzzySearchMinScore (#45240)
* Adding Emmet preference for changing fuzzySearchMinScore

* Changing name and description of the new setting.

* Updating version of vscode-emmet-helper
2018-03-08 18:02:33 -08:00
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
Ramya Achutha Rao
6e1574671a Use copy of config object to avoid making changes to the readonly objects 2018-03-05 10:22:01 -08:00
Ramya Achutha Rao
4392d2efff Trigger emmet in js files on ! Fixes #43841 2018-03-02 16:22:07 -08:00
Ramya Rao
d7dca142ad Allow css emmet completions when abbr contains period Fixes #44352 (#44781)
* Allow css emmet completions when abbr contains period Fixes #44352

* Move css related workaround to cssMode #44352

* getEmbeddedParsedDocument is now not needed

* Show emmet completions everywhere inside the embedded css doc
2018-03-01 16:44:28 -08:00
Ramya Achutha Rao
ba38492bfd Add emmet icon as png #44626 2018-03-01 15:25:43 -08:00
Ramya Achutha Rao
c16869d804 Revert move of emmet to css extension Fixes #44840 2018-03-01 12:59:47 -08:00
Benjamin Pasero
9a04587cc6 Revert "Update icon for Emmet"
This reverts commit 31f3a21523.
2018-03-01 07:30:52 +01:00
Ramya Achutha Rao
31f3a21523 Update icon for Emmet 2018-02-28 11:17:56 -08:00
Ramya Achutha Rao
9c1a05e26a Update ReadMe for Emmet 2018-02-27 17:40:37 -08:00
Ramya Achutha Rao
dcbeb21cb3 Update displayName, description for Emmet #43978 2018-02-27 16:42:46 -08:00
Ramya Achutha Rao
f10b71e994 Avoid setting completion items as undefined 2018-02-26 17:52:27 -08:00
Ramya Achutha Rao
57572a12e9 Use latest emmet helper 2018-02-26 14:59:25 -08:00
Gus Hurovich
7420a04c64 Fix for Emmet's wrap with abbreviation inserting extra spaces (#43345)
* Fixing trailing spaces in expansion

* Emmet - Fixing extra spaces when wrapping with abbreviation

* Avoid fetching tag if there's no need to ezpand again

* Replacing several 'indexof's with regexp

* Making regexp for tagname stricter. Removing unnecessary check.

* Removing extra call to expand.

* tiny changes

* tinitiny changes
2018-02-14 17:08:44 -08:00
Ramya Rao
00f2d8ed71 Get emmet completions from css extension (#41652)
* Get emmet completions from html,css extensions

* Resolve extensionsPath, use emmet results even if empty

* Support css abbr with :

* Refactoring

* Add some basic emmet tests

* Refactoring

* More tests
2018-02-12 21:40:10 -08:00
Ramya Achutha Rao
bfbbe132cf Fix css emmet abbreviations with : Fixes #43544 2018-02-12 14:48:56 -08:00
Matt Bierner
308c1887df Update extensions for TS 2.7
Update src to build with TS 2.7

Explicitly assign this.message in the else body
2018-02-08 14:28:55 -08:00
gushuro
e10ce07e3a Emmet - Fixing bug in toggle comment with multi cursor (#42857)
* Fixing issue with toggleComment on multiple nested cursors

* Fix error when an edit is empty

* reordering

* adding a test for toggleComment on nested selections

* Adding test for stylesheet files

* Removing change that was making integration tests fail
2018-02-08 11:45:52 -08:00
Ramya Achutha Rao
b8a11e9349 Upstream emmet fixes 2018-02-06 17:55:40 -08:00
Dániel Tar
64b30f38c8 Stylistic and grammar fixes in Emmet messages (#42893)
* Stylistic and grammar fixes in Emmet messages

Also emphasize vendor prefixes with an apostrophe to make them stand out.

* Add missing space
2018-02-05 09:14:09 -08:00
Ramya Achutha Rao
a31d226c54 Fix emmet for sass,stylus #42904 2018-02-03 20:12:25 -08:00
Ramya Achutha Rao
611b4b365f Support vendor prefix in emmet #35951 2018-01-31 17:05:02 -08:00
Ramya Achutha Rao
02526ccf61 Semicolon is nolonger required to reset emmet 2018-01-31 17:05:01 -08:00
Ramya Achutha Rao
0155dca759 Move default vendor prefix whitelist to emmet helper 2018-01-30 14:18:38 -08:00
gushuro
3625e8f879 Adding default values for CSS vendor prefixes in emmet (#42385) 2018-01-29 21:12:11 -08:00
Ramya Achutha Rao
4f5a256a4b Allow vendor prefix in emmet #35951 2018-01-29 17:29:31 -08:00
Dirk Baeumer
e91b851ca8 Upgrade to latest language pack format 2018-01-30 00:11:57 +01:00
Dirk Baeumer
62fc2a1230 Fix yarn.lock for emmet. 2018-01-28 21:47:46 +01:00
Ramya Achutha Rao
7a5045618e Skip emmet in selectors #42245 2018-01-27 22:10:58 -08:00
Ramya Achutha Rao
41e7dbc0df Absorb upstream bug fixes for emmet 2018-01-26 15:30:56 -08:00
Dirk Baeumer
04594c864b Add support for Language Packs 2018-01-25 21:14:34 +01:00
Ramya Achutha Rao
f57b024b18 Use latest emmet helper that has fixes #33818 2018-01-19 10:51:24 -08:00
Pascal Fong Kye
b36655544f fix: wrap current node when no selection and cursor on opening or closing tag (#41602) 2018-01-14 16:52:47 -08:00
Ramya Achutha Rao
05854360cc Fix typo 2018-01-14 12:35:38 -08:00
Ramya Achutha Rao
65f1bd4b25 Allow hex color completions from emmet 2018-01-12 16:07:53 -08:00
Ramya Achutha Rao
ca023a700f Move absolute path check to avoid dependency on path in emmet helper 2018-01-11 19:01:53 -08:00
Ramya Achutha Rao
f4ed56b0d6 Ignore php tag when deciding if cursor is inside open tag Fixes #41216 2018-01-08 18:56:51 -08:00
Ramya Achutha Rao
8f99f1d18e Allow - in classnames when using bem in emmet. Fixes #38768 2017-12-19 15:13:11 -08:00
Ramya Achutha Rao
bdeb370602 Apply comment filter when wrap with abbr fixes #40471 2017-12-19 13:46:42 -08:00
Ramya Achutha Rao
66a439e253 Absorb upstream fix for #39789 2017-12-17 23:37:16 -08:00
Ramya Achutha Rao
4913e7f68f Split emmet abbreviation tests 2017-12-15 15:25:58 -08:00
Ramya Achutha Rao
5503b0b92f Avoid emmet when typing css property values Fixes #34162 2017-12-14 16:02:52 -08:00
Ramya Achutha Rao
4199874acb Skip parsing docs when emmet suggestions are disabled 2017-12-12 14:24:03 -08:00
Ramya Achutha Rao
b1d931fef1 Update lang server in emmet to the same version as others Fixes #40104 2017-12-12 11:08:27 -08:00
Ramya Achutha Rao
a1b377e423 Skip emmet when open tag is not closed even when no parent node #35128 2017-12-06 15:05:06 -08:00
Ramya Achutha Rao
cac292bc5c Add the newly supported emmet preferences in package.json 2017-12-05 10:57:24 -08:00
Ramya Achutha Rao
f4d549e757 Fix unused code errors 2017-12-04 15:43:35 -08:00
Ramya Achutha Rao
813b2d91a7 Fix broken emmet tests 2017-12-04 15:14:17 -08:00
Ramya Achutha Rao
021e95d747 Fix #39578 Add completion provider tests for emmet 2017-12-04 14:29:56 -08:00