Commit Graph

126 Commits

Author SHA1 Message Date
Maira Wenzel
71ed221b0e fix typo 2020-01-15 16:35:58 -08:00
Pine Wu
181ba10e5f Fix #71996 2019-11-06 16:03:19 -08:00
Pine Wu
1c623c163d Part of #71996 2019-09-03 10:54:02 -07:00
Pine Wu
99d5ff9c0f Redo emmet change 2019-07-30 11:10:23 -07:00
pi1024e
c757f491e5 Respelling "WhiteSpace" as "Whitespace", in functions, as Whitespace is one word 2019-07-23 13:52:11 -04:00
pi1024e
e89ea5c965 Revert "respelling WhiteSpace as Whitespace, as Whitespace is one word"
This reverts commit d60b16c82e3ab83d6b1f2787a176d5a2e38b829b.
2019-07-23 13:52:11 -04:00
pi1024e
467fe58c6a respelling WhiteSpace as Whitespace, as Whitespace is one word 2019-07-23 13:52:11 -04:00
Waldir Pimenta
f3e4e47164 Fix spelling of the example abbreviation (e.g.) 2019-06-05 16:00:26 +02:00
Matthew Kwiecien
7221f92ee2 Get syntax from arguments and document editor language when wrapping. 2019-02-09 12:59:16 -06:00
Ubuntu
35eae99ec3 Fix more lgtm.com issues 2019-01-17 18:06:23 +00:00
Matt Bierner
a131278f4a Enabling no-redundant-jsdoc for tslint 2019-01-04 15:34:50 -08:00
Matt Bierner
b4964bcf35 Replace some common index based for loops with for-of loops
Replaces many loops of the form:

```js
for (let i = 0; i < elements.length; ++i) {
    const i = elements[i];
   ...
}
```

with:

```js
for (const element of elements) {
    ...
}
```

Mix of a horrible regex based find/replace and manual touch ups
2019-01-03 19:11:18 -08:00
Matt Bierner
5cc00861fc Enable no-var-keyword tslint rule 2019-01-03 18:02:48 -08:00
Matt Q
19ac31a246 Fixed #59395 - Emmet Syntax Profiles tag_nl produces no extra space (#60108)
* fix

* fixed typo

* Formatting
2018-10-22 19:39:49 -07:00
Ramya Achutha Rao
6ad61f018a Getting closer to shared config #59803 2018-10-02 20:00:19 -07:00
Matt Bierner
f1c7c19a36 Fixing some strict mode typing issues in emmet 2018-10-01 16:07:55 -07:00
Ramya Achutha Rao
067ed91b79 Allow emmet inside script tag with js mime if js is mapped to html Fixes #58562 2018-09-14 10:44:44 -07:00
Ramya Achutha Rao
c0973b5fa1 Wrap with abbreviation should work in non html files Fixes #57754 2018-09-12 14:20:31 -07:00
Mathieu Déziel
f8420b48df Fixed emmet validation when open angle bracket is followed by space (#55762)
* Fixed emmet validation when open angle bracket is followed by space

* Fixed space check to support every kind of whitespace

* Added test
2018-08-05 15:36:31 -07:00
Ramya Achutha Rao
c3ad978982 Escape $ when wrapping Fixes #52640 2018-06-22 14:57:03 -07:00
Jackson Kearl
cc84951f1e Allow Emmet "Go to matching pair" to work inside script tags (#51173)
* Allow Emmet "Go to matching pair" to work inside script tags

* Refactor template script detection and node extraction.

* Futher refactoring of Emmet template identification logic.

* Emmet: select entire script tag when unable to idnetify an inner element

* Remove redundant nullity check
2018-06-05 17:00:39 -07:00
Ramya Achutha Rao
90581c7f94 Dont trigger emmet for # in selectors Fixes #49269 2018-05-30 17:04:28 -07:00
Jean Pierre
7f274127ff Fix for #49138 (#49501)
* Fixes #49138

* Updated comment

* Renaming variables for readability
2018-05-13 20:31:50 -07:00
Ramya Achutha Rao
aaf7b29625 Dont treat => as possible tag Fixes #48887 2018-05-11 14:44:20 -07:00
Ramya Achutha Rao
979efb6b76 Allow ! as css abbreviation in property value Fixes #49214 2018-05-11 14:24:12 -07:00
Ramya Achutha Rao
57d9f26123 Disable live preview of wrap feature when multiple selections in same line #49138 2018-05-06 16:54:41 -07:00
Ramya Achutha Rao
79a2512769 Emmet: Allow css completions in style tag/attribute, html completions in script tags with html type 2018-04-22 21:49:56 -07:00
Gus Hurovich
1b4886dda9 Adding setting for disabling partial parsing in stylesheets (#46979)
* Adding setting for disabling partial parsing in stylesheets

* Added description
2018-03-30 11:24:54 -07:00
Ramya Achutha Rao
f5b569b633 Use partial parsing for stylesheets for Emmet command #43470 2018-03-27 09:51:19 -07:00
Ramya Achutha Rao
2792b8f437 Skip emmet inside comments in stylesheets when running the command 2018-03-26 20:47:09 -07:00
Gus Hurovich
a716373aaa Adding Live Preview for Wrapping Individual Lines with Abbreviation (#45453)
* Adding Live Preview to wrapIndividualLinesWithAbbreviation

* Refactoring

* Re-arranging code
2018-03-13 21:34:52 -07:00
Ramya Achutha Rao
fa6a57bf47 Fix emmet tests 2018-03-13 00:07:05 -07:00
Gus Hurovich
16b91c78f4 Emmet: when wrapping, skip lines with no characters selected (#45224)
* When wrapping using Emmet, don't consider lines with no characters selected.

* Adding unit tests

* Adding support for multicursors in wrapIndividualLinesWithAbbreviation

* Moving check in multicursor wrapIndividualLines

* Make sure when expanding several abbreviations with different snippets that the edits are applied in reverse order.
2018-03-09 16:49:07 -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
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 Achutha Rao
bfbbe132cf Fix css emmet abbreviations with : Fixes #43544 2018-02-12 14:48:56 -08:00
Ramya Achutha Rao
a31d226c54 Fix emmet for sass,stylus #42904 2018-02-03 20:12:25 -08:00
Ramya Achutha Rao
7a5045618e Skip emmet in selectors #42245 2018-01-27 22:10:58 -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
65f1bd4b25 Allow hex color completions from emmet 2018-01-12 16:07: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
bdeb370602 Apply comment filter when wrap with abbr fixes #40471 2017-12-19 13:46:42 -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
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
021e95d747 Fix #39578 Add completion provider tests for emmet 2017-12-04 14:29:56 -08:00
Ramya Achutha Rao
8a12b294de Skip emmet when open tag is not closed Fixes #35128 2017-12-03 18:14:07 -08:00
Ramya Achutha Rao
699a12cb78 Mapped languages shld be excluded if in emmet excludes for expand cmd #39369 2017-12-01 11:36:49 -08:00
Ramya Achutha Rao
719d7b92f4 Add strictNullChecks for emmet #38820 2017-11-20 16:25:15 -08:00
Matt Bierner
86999bb82b Fix a few more emmet errors for strict null 2017-11-20 14:34:32 -08:00
Matt Bierner
37c3cd1117 Start moving emmet extension to strict mode (#37740)
* Start moving emmet to strict mode

First part of moving the emmet extension to strict mode TypeScript. This change focuses on adding annotations when things can be undefined and removing jsdoc type comments

* Fix a few more errors

* Fix compile errors

* Tiny updates
2017-11-07 16:28:35 -08:00