Commit graph

529 commits

Author SHA1 Message Date
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
Joao Moreno 66e14b8be8 cleanup 2019-07-15 07:25:46 +02:00
Aurélien Pupier 7a5bca9faf Add License field to package.jsons #68423 (#68771)
it should avoid to have "warning XXX: No license field" during yarn
build

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
2019-06-06 11:44:50 +02:00
Waldir Pimenta f3e4e47164 Fix spelling of the example abbreviation (e.g.) 2019-06-05 16:00:26 +02:00
Benjamin Pasero d78a75973c
update @types/node (#74881) 2019-06-05 10:20:01 +02:00
Benjamin Pasero d7977c880f debt - use @types/node: 10 for all extensions 2019-06-05 09:32:36 +02:00
Sebastian De Deyne 0b0c2ceb95
Fix types in Emmet comments 2019-02-21 09:45:05 +01:00
Matthew Kwiecien 6fb4ef694a PR Review: moving expected output to relevant tests. 2019-02-12 18:39:17 -06:00
Matthew Kwiecien 45f686fadc Refactoring the wrap with abbrev unit test class to be less repetitive. 2019-02-10 10:11:48 -06:00
Matthew Kwiecien 0b3c33b801 Adding unit tests to check for className when file is jsx. 2019-02-10 10:09:56 -06:00
Matthew Kwiecien 7221f92ee2 Get syntax from arguments and document editor language when wrapping. 2019-02-09 12:59:16 -06:00
Pine Wu e0a3f26e07 Emmet dependency for #66013 2019-01-17 13:18:22 -08:00
Ubuntu 35eae99ec3 Fix more lgtm.com issues 2019-01-17 18:06:23 +00:00
Pine Wu ba0d1454e7 Update emmet-helper for #65455 2019-01-16 15:40:30 -08:00
Pine Wu 5ac02a0910 Update emmet-helper for #63384 and #62855 2019-01-16 11:13:25 -08:00
Matt Bierner 873fc8fc38 Enable tslint number-literal-format 2019-01-04 15:45:28 -08: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
vim88 510d90d11e Fixes typo and occurrences of double words in comments. 2018-11-26 19:57:48 +02:00
Isidor Nikolic ec98c79d44
Merge pull request #63497 from Microsoft/isidorn/cgmanifest
Start using component governance for oss tracking
2018-11-20 12:54:47 +01:00
isidor 9edd984da8 delete OSSREADME.json 2018-11-20 12:54:22 +01:00
Ramya Achutha Rao dcc243c992 Better readability for util.ts 2018-11-18 19:42:02 -08:00
isidor 2ba92aa3e8 add commitHash to cgmanifest 2018-11-15 17:43:46 +01:00
isidor 347fb6347b add all cgmanifests. Still no commitHash 2018-11-14 18:18:25 +01:00
Ramya Achutha Rao 6f139c79ad Test for multiline selection for wrap 2018-11-05 17:45:40 -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 26365c8957 Add typings for emmet #59803 2018-10-03 12:55:55 -07:00
Ramya Achutha Rao 6ad61f018a Getting closer to shared config #59803 2018-10-02 20:00:19 -07:00
Matt Bierner ff957050db Remove use strict in extensions (part 2)
We compile using alwaysStrict so this directive is not needed
2018-10-02 16:23:27 -07:00
Matt Bierner dd3e2d94f8 Remove use strict directives in extension code
We compile with alwaysStrict so these directives are not needed
2018-10-02 16:02:44 -07:00
Matt Bierner f1c7c19a36 Fixing some strict mode typing issues in emmet 2018-10-01 16:07:55 -07:00
Matt Bierner 02e4aada63 Remove unused 2018-10-01 15:59:20 -07:00
Matt Bierner dece532913 Prefix unused with _ 2018-10-01 15:57:07 -07:00
Matt Bierner 90041e8bc7 Use await for tests
Testing convert to async quick fix
2018-10-01 15:56:44 -07:00
Matt Bierner e87867c917 Convert to async 2018-10-01 15:44:58 -07:00
Joao Moreno 707787c5b8 update yarn.lock files to use integrity 2018-09-30 16:34:43 +02:00
Alex Dima 34e7a220c8 Avoid shipping unnecessary files 2018-09-19 19:53:46 +02:00
Johannes Rieken 1da08a83c8 update vsce ignore file #57680 2018-09-19 10:55:17 +02:00
Ramya Achutha Rao f5670e2764 Emmet helper to fix #56082 2018-09-14 14:04:33 -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
Ramya Achutha Rao 31bf4ccab3 Balance inward should go to inner contents even when no selection Fixes #58173 2018-09-11 19:31:06 -07:00
Johannes Rieken ccec2c9543 use vsce packagedDependencies 2018-09-04 12:29:23 +02:00
Johannes Rieken ffe5da332d bundle node_modules and (shallow) exclude them from the extension #56081 2018-08-22 11:35:41 +02:00
Johannes Rieken a9e3a3d69e webpack - check js files, declare params, #56081 2018-08-21 16:40:02 +02:00
Johannes Rieken 01365dbe26 webpack - more defaults for extensions 2018-08-20 15:23:56 +02:00
Johannes Rieken 1115196349 add a shared webpack conifg 2018-08-17 15:56:57 +02:00
Johannes Rieken ae6ac66cb5 use ts-loader compilerOptions 2018-08-16 11:49:05 +02:00
Johannes Rieken a7b66b9252 keep node_modules in extension bundle 2018-08-16 10:56:29 +02:00
Johannes Rieken d62f5b3da9 use ts loader, exclude node_module for now 2018-08-16 10:52:08 +02:00
Johannes Rieken 7f2ca9a8b0 Revert "try different source map config"
This reverts commit 4c094254ac.
2018-08-13 17:00:00 +02:00
Johannes Rieken 4c094254ac try different source map config 2018-08-13 16:42:05 +02:00
Johannes Rieken 74de533cac enable source map generation 2018-08-09 18:29:05 +02:00
Johannes Rieken 776e491ba4 bundle into dist folder, copy ask-pass shell scripts into dist, some 💄 2018-08-09 15:31:31 +02:00
Johannes Rieken 4bdf15ba9e pack emmet 2018-08-09 12:07:01 +02:00
Rob Lourens a0764210a8 #55478 - switch all builtin settings to 'markdownDescription' instead of 'description' where needed 2018-08-08 17:01:37 -07:00
Ramya Achutha Rao a8f286bac0 Removed unused dependencies 2018-08-08 09:03:11 -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 4afd9f5343 Latest emmet helper to fix #52366 2018-07-30 15:34:16 -07:00
Matt Bierner f9eeb0759f Cleaning up emmet setting descriptions 2018-07-23 15:27:55 -07:00
Greg Van Liew c150d0d42d Edit pass on new built-in extension comments (#54277) 2018-07-13 15:28:27 -07:00
Ramya Achutha Rao a32654c5f1 Link to docs in the website from builtin extension readme #54098 2018-07-12 18:16:01 -07:00
Ramya Achutha Rao 0d7ee9e076 Link to CONTRIBUTING.md for built-in extensions #54098 2018-07-12 18:09:35 -07:00
Ramya Achutha Rao 75cda752a5 Move how to contribute to a separate file for built in extensions #54098 2018-07-12 18:06:16 -07:00
Ramya Achutha Rao f89c16c04c Standardize readme across built-in extensions #54098 2018-07-11 16:38:32 -07:00
Dirk Baeumer 21991b4912 Move to latest vscode-nls for corrupted cache support 2018-07-03 16:12:52 +02:00
Jackson Kearl 4f870afa58 Enforce node boundaries in places where it matters (#53192)
* Enfoce node boundries in places where it matters

* Flip defualt emmet includeBoundries to true

Explicitly set getNode's include boundries where needed

* Remove defualt papameter

* Add update image boundry tests

* Add tests for bondries on some of the tag actions

* Rest of tag tests
2018-06-29 13:40:38 -07:00
Ramya Achutha Rao f200964ed5 Fix Select next/item bug when cursor is at tag boundary 2018-06-27 21:48:05 -07:00
Ramya Achutha Rao c3ad978982 Escape $ when wrapping Fixes #52640 2018-06-22 14:57:03 -07:00
James b7e6e04666 fix #51768 (#51849) 2018-06-21 17:36:25 -07:00
Joao Moreno 8a3ffed0ab vsts: report smoketest results 2018-06-12 17:37:53 +02:00
Joao Moreno 4dc738593b complete integration test results 2018-06-12 17:24:23 +02:00
Jackson Kearl 0e97f85c39 Make Emmet: "update image size" consistant with "follow link" (#51630) 2018-06-11 11:46:06 -07:00
Ramya Achutha Rao a715378168 Fixes #50983 2018-06-08 15:38:47 -07:00
Jackson Kearl 21c02bad2e Enable emmet to function inside script templates. #51180 (#51256) 2018-06-06 14:14:24 -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
Rob Lourens 047b88c39c Fix deps for building with node 10 - see #48699 and anodynos/upath#20 2018-06-04 14:28:51 -07:00
Ramya Achutha Rao 90581c7f94 Dont trigger emmet for # in selectors Fixes #49269 2018-05-30 17:04:28 -07:00
Heldenkrieger01 30bcdffcb3 Fix #49777 - Emmet balance In after balance out should go back to initial selection and not first child (#49996)
* Update Emmet - balance.ts

* Cover all cases
2018-05-29 17:29:30 -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 060ec85fbb Text ending with : are noisy abbreviations Fixes #49376 2018-05-11 14:24:12 -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 1c53b7a0a2 Fix for #49647 2018-05-11 11:27:29 -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 0b634c4a87 Use specific document filters for file and untitled 2018-04-26 11:29:43 -07:00
Ramya Achutha Rao 6d6585a213 Bug fix from emmet helper 2018-04-23 11:54:16 -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
Ramya Achutha Rao c314388da2 Move emmet from html extenstion to emmet extension 2018-04-22 21:49:56 -07:00
Ramya Achutha Rao c1cd4378c5 Upstream bug fixes 2018-04-19 20:40:52 -07:00
Ramya Achutha Rao cfb6059563 Refactoring few emmet unit tests 2018-04-19 17:26:47 -07:00
Ramya Achutha Rao efb3aefd99 temporary disabling failing tests 2018-04-13 18:03:30 -07:00
Ramya Achutha Rao 34adcb749a Dont depende on workspace settings for tests 2018-04-13 16:26:07 -07:00
Greg Van Liew c17139f9a1
Merge pull request #47714 from gregvanl/master
Update settings descriptions to match vscode-docs PR#1530
2018-04-12 14:16:30 -07:00
Ramya Achutha Rao fe9d9532ea Absorb upstream bug fix for #46511 2018-04-11 21:34:22 -07:00
Greg Van Liew 36faf7a34b Update settings description typos 2018-04-11 21:21:24 -07:00
Ramya Achutha Rao e6b61067f2 Validate surrounding text before providing emmet completions in jsx/xml Fixes #47612 2018-04-10 16:14:56 -07:00
Ramya Achutha Rao a786ed344e Cannot assign to read only property in nested settings #47316 2018-04-09 14:38:03 -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
Gus Hurovich e252da3861 Adding tests for stylesheets partial parsing (#46977) 2018-03-29 17:48:32 -07:00
Ramya Rao 2de91fdce5
Css partial parse refactoring (#46894)
* Refactor parsePartialStylesheet

* More refactoring

* To avoid errors, parse line comments char by char and no when getting to previous line.

* Revert "To avoid errors, parse line comments char by char and no when getting to previous line."

This reverts commit f353dba4c7.

* Fix for inline comments inside block comments
2018-03-28 18:12:07 -07:00
Gus Hurovich 95b0cffe72 Fix for #46745 (#46788)
* Fix for #46745

* If { found in selector, don't partial parse.
Adding sanity checks
2018-03-27 18:32:46 -07:00
Ramya Achutha Rao 7cf6969bd0 Absorb upstream fix for #45790 2018-03-27 17:17:21 -07:00
Ramya Achutha Rao c2dc46c1ce Offset is relative to position when finding comment 2018-03-27 12:28:20 -07:00
Ramya Achutha Rao c07abc03f7 Avoid parsing file when abbr is invalid #43470 2018-03-27 12:12:22 -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 65e502e8ef Remove unused variables 2018-03-26 21:19:35 -07:00
Ramya Achutha Rao 2792b8f437 Skip emmet inside comments in stylesheets when running the command 2018-03-26 20:47:09 -07:00
Ramya Achutha Rao 4f10555e3c Skip emmet inside comments in stylesheets #46434 2018-03-26 18:30:37 -07:00
Gus Hurovich 91416ffab8 Stylesheet partial parse (#46376)
* First draft at partial parsing of css for emmet

* Partial parsing of stylesheets for Emmet

* Addressing feedback

* Refactoring and fixing little bug

* Liitle fix

* Equals are now equals

* We don't want emmet in selectors

* Skip comments when preparsing

* Addressing feedback, refactoring and cleaning up code.

* Update endPosition only if not eof

* Use function to find closing comment

* Don't check more than 5000 characters back
2018-03-26 18:14:28 -07:00
Ramya Achutha Rao 871e610848 Respect selfClosingStyle when joining tags Fixes #44417 2018-03-26 15:05:04 -07:00
Ramya Achutha Rao 9d95fbae98 Use latest emmet helper to fix #46305 2018-03-26 14:19:22 -07:00
Ramya Achutha Rao 7db6419d78 Avoid re-parsing for emmet completions when triggered for incomplete completions 2018-03-26 13:33:38 -07:00
Ramya Achutha Rao e7ce1f53ea Do not lookahead when extracting css abbreviations Fixes #46452 2018-03-23 17:38:38 -07:00
Jean Pierre af21dc7925 Fix for #46106 (#46309) 2018-03-22 14:19:53 -07:00
Ramya Achutha Rao a406976823 Upstream bug fix for Fixes #44256 2018-03-14 19:13:41 -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
Ramya Achutha Rao 6d5739d3ec Remove obsolete code as html emmet completions are now coming from html extension 2018-03-12 23:47:09 -07:00
Ramya Achutha Rao 9d578694d0 Validate position for emmet using best guess fixes #45634 2018-03-12 23:39:38 -07:00
Ramya Achutha Rao b7cf44841a Remove obsolete code as html emmet completions are now coming from html extension 2018-03-12 23:39:25 -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 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