Commit Graph

74 Commits

Author SHA1 Message Date
Raymond Zhao
75aea74df7 feat: bump emmet-helper (#210508)
Also add test
2024-04-17 14:21:23 -07:00
Raymond Zhao
79d10f9591 Revert "Mark CompletionList as complete (#169574)" (#172581)
This reverts commit 3834785d0c.
2023-01-26 21:14:03 +01:00
Raymond Zhao
3834785d0c Mark CompletionList as complete (#169574)
Fixes #168997
2022-12-19 22:11:03 +01:00
Raymond Zhao
968026a46d Use includes instead of indexOf (#167778) 2022-11-30 22:44:10 +00:00
Raymond Zhao
50140a53cc Revert "Fix language-specific tab expansion and polish (#157035)" (#160233)
This reverts commit 9f80085795.
2022-09-06 15:21:34 -07:00
Raymond Zhao
9f80085795 Fix language-specific tab expansion and polish (#157035)
* Fix language-specific tab expansion and polish

Fixes #156075

* Add back check
2022-08-03 16:31:19 -07:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Raymond Zhao
8ba7e14db9 Emmet reduce JSX array noise (#146757)
Reduce emmet JSX array noise, fixes #138461
2022-04-05 12:20:07 -07:00
Raymond Zhao
68013971ff Add language mapping as param to getEmmetMode
Fixes #127996
2021-10-11 15:38:12 -07:00
Raymond Zhao
748a753aa0 Don't show completion on comment lines
Fixes #117888
2021-10-06 11:24:32 -07:00
Raymond Zhao
9b091c7d22 💄 Emmet tests 2021-03-30 11:30:32 -07:00
Abhijeet Joshi
b81cea2a35 Fix Emmet abbreviation for Handlebars style blocks (#118832)
Co-authored-by: Abhijeet Joshi <abhjos@microsoft.com>
2021-03-12 11:54:16 -08:00
ABHIJEET PANDEY
5aeafe2b20 Fix Emmet issue where incorrect abbreviation is displayed in an html document (#117759) 2021-03-01 13:26:13 -08:00
Raymond Zhao
b84858babe Emmet remove dependency on vscode-html-languageservice (#113599) 2020-12-30 10:14:23 -08:00
Raymond Zhao
15ba9aee0e Emmet improve Expand Abbreviation perf (#113558) 2020-12-29 16:15:55 -08:00
Raymond Zhao
d10e2fc0e6 Use new helper extractAbbreviation function 2020-10-19 11:27:17 -07:00
ChaseKnowlden
e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02:00
Martin Aeschlimann
9b1773e013 emmet serverless 2020-07-09 17:23:16 +02:00
Pine Wu
23d234d919 Fix #86941 2019-12-13 15:00:38 -08:00
Pine Wu
8cafaf5900 Fix #79766 2019-08-28 12:58:08 -07:00
Pine Wu
99d5ff9c0f Redo emmet change 2019-07-30 11:10:23 -07:00
Pine Wu
09bfb693f6 Revert "Fix #70731"
This reverts commit c25e395ace.
2019-07-29 23:21:06 -07:00
Rob Lourens
5caff73e1f Fix build 2019-07-29 21:45:45 -07:00
Pine Wu
c25e395ace Fix #70731 2019-07-29 15:56:53 -07:00
Ramya Achutha Rao
6ad61f018a Getting closer to shared config #59803 2018-10-02 20:00:19 -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
e6b61067f2 Validate surrounding text before providing emmet completions in jsx/xml Fixes #47612 2018-04-10 16:14: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
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
c07abc03f7 Avoid parsing file when abbr is invalid #43470 2018-03-27 12:12:22 -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
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
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
Ramya Achutha Rao
4199874acb Skip parsing docs when emmet suggestions are disabled 2017-12-12 14:24:03 -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
700c3bd6b8 Mapped languages shld be excluded if in emmet excludes Fixes #39369 2017-11-30 20:31:24 -08:00
Ramya Achutha Rao
fafcb48f71 Allow emmet autocompletion when no parent node Fixes #38973 2017-11-24 11:44:01 -08:00
Matt Bierner
7965160a6d Emmet strict mode move, part 2 (#37840)
Continue moving emmet extension to strict mode. This change does the following:

- Remove jsdoc types. These are unused in ts files and can easily get out of date
- Annotate when something can return undefined
- Add null checks for when something can be undefined
- Add explicit types when something can be any
2017-11-20 14:08:49 -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
Ramya Achutha Rao
81cca6cc60 Lazy load emmet helper to ease startup #35120 2017-10-30 20:56:19 -07:00
Ramya Achutha Rao
a3aa704423 Emmet completions in script of type text/template 2017-10-30 10:47:57 -07:00
Ramya Achutha Rao
a0139b47f4 Allow emmet in script tag if mimetype is html, plain or x-template #34921 2017-09-26 11:40:47 -07:00