Commit Graph

103 Commits

Author SHA1 Message Date
Raymond Zhao
b4b3cacd74 debt: remove any casts (#270074) 2025-10-06 18:19:46 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
tharbakim
fb5e446a3d Fix detection of CSS Preprocessor Comments at Start of File in Emmet Extension (#146121)
* Fix for PartialStyleSheet getting stuck in loop

Adds a clause for detecting `//` as a comment marker when working backwards through a file, preventing the parser from getting stuck when the comment starts at 1:1

* Modify change to detect start of file instead of skipping additional `/` characters now that we know the issue only occurs at offset 0.

Co-authored-by: Tyler McEnaney <tharbakim@hotmail.com>
2022-04-04 12:02:15 -07:00
Raymond Zhao
68013971ff Add language mapping as param to getEmmetMode
Fixes #127996
2021-10-11 15:38:12 -07:00
Raymond Zhao
f542a0e83a Update emmet-helper dependency
Fixes #117519
Fixes #131966
2021-10-07 16:30:17 -07:00
Raymond Zhao
f25fd50e22 Add > to Emmet expand suggestions
Fixes #120566
2021-10-07 08:34:51 -07:00
Raymond Zhao
9627b4ea63 Emmet identify CDATA for wrap, fixes #123136 2021-05-20 13:20:50 -07:00
Liao Jinyuan
80f11080c1 fix get embedded css util (#120480) 2021-04-05 09:11:31 -07:00
Raymond Zhao
083bf90204 JSX self-closing style should default to XHTML, fixes #120356 2021-04-01 16:20:24 +00:00
vinku
a56afa9033 Emmet: Select next/previous item does not work with script tag. (#118842)
Co-authored-by: Vinay Kumar Sharma <vinakum@microsoft.com>
2021-04-01 08:12:12 -07:00
Sang
595a894b21 Add emmet self closing abbrev support (#120311) 2021-04-01 08:11:15 -07:00
Raymond Zhao
6e07fb24ee Remove unnecessary condition, fixes #119120 2021-03-30 11:45:06 -07:00
Raymond Zhao
abf99de040 💄 2021-03-03 23:18:17 +00:00
Raymond Zhao
0a49559a44 Mitigates #118008, better fix TBD 2021-03-03 04:49:37 +00:00
Hsuan-An Weng Lin
975dfff6db Emmet: Change the type of emmet extensions path (#117946)
* Emmet: change extensionsPath input type to string[]
* Emmet: add migration function for old config
2021-03-02 12:14:51 -08:00
Hsuan-An Weng Lin
c30e2d46b2 Fix emmet update extensions path issue (#117797)
* Emmet: fix unloaded emmetHelper

* Emmet: fix wrong type of error object
2021-03-01 17:52:15 +00:00
Jean Pierre
5d2c9bf299 Consolidate wrapWithAbbreviation and wrapIndividualLinesWithAbbreviation in one command (#116603)
fixes #109191, fixes #116738
2021-02-19 11:33:47 -08:00
Raymond Zhao
d29d7e023b Add ! as stylesheet trigger character for Emmet, fixes #117020 2021-02-19 18:47:48 +00:00
Raymond Zhao
56c808a66a Emmet flatten DocumentStreamReader (#113602) 2020-12-30 11:00:21 -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
b5cd082cd4 Emmet refactor toggle comment (#113557) 2020-12-29 15:02:55 -08:00
Raymond Zhao
433833fbe0 Emmet refactor reflect CSS and update image commands (#113550) 2020-12-29 12:44:12 -08:00
Raymond Zhao
c44b7d25d9 Refactor Emmet merge lines and select item commands (#113516) 2020-12-28 17:36:38 -08:00
Raymond Zhao
c7dbab59ff Emmet create new html-matcher override instead of using LS (#113508) 2020-12-28 15:06:23 -08:00
Raymond Zhao
ea15eb4e5a Strengthen sameNodes check 💪 fixes #112829 2020-12-18 17:48:50 +00:00
Raymond Zhao
483bd40550 Update several Emmet commands (#112597)
For match tag, update tag, and balance in/out, we now have the following:

- vscode-html-languageservice parse is being used to speed up file parse times
- Balance balance-in after balance-out behaviour is now more consistent
- These commands now work in markup files with unclosed tags
- Implemented a cache for these commands to prevent multiple document parses on the same version of the document
2020-12-16 10:20:57 -08:00
Raymond Zhao
f87d1f4609 Add force refresh case for #108670 2020-10-14 14:07:40 -07:00
Raymond Zhao
0fc17285e1 Update Emmet on save of snippets file #108670 2020-10-14 12:32:20 -07:00
Martin Aeschlimann
6f5ebbaafb use vscode-emmet-helper isnetad of vscode-emmet-helper2 2020-08-14 13:56:34 +02:00
Martin Aeschlimann
9b1773e013 emmet serverless 2020-07-09 17:23:16 +02:00
Pine Wu
ea2f6c6391 Fix #87493 2020-03-05 11:59:02 -08:00
Pine Wu
99d5ff9c0f Redo emmet change 2019-07-30 11:10:23 -07:00
Waldir Pimenta
f3e4e47164 Fix spelling of the example abbreviation (e.g.) 2019-06-05 16:00:26 +02:00
Sebastian De Deyne
0b0c2ceb95 Fix types in Emmet comments 2019-02-21 09:45:05 +01:00
Matt Bierner
a131278f4a Enabling no-redundant-jsdoc for tslint 2019-01-04 15:34:50 -08:00
Ramya Achutha Rao
dcc243c992 Better readability for util.ts 2018-11-18 19:42:02 -08:00
Ramya Achutha Rao
6ad61f018a Getting closer to shared config #59803 2018-10-02 20:00:19 -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
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
James
b7e6e04666 fix #51768 (#51849) 2018-06-21 17:36:25 -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
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
a786ed344e Cannot assign to read only property in nested settings #47316 2018-04-09 14:38:03 -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
c2dc46c1ce Offset is relative to position when finding comment 2018-03-27 12:28:20 -07:00