Skip to content

Consider moving emmet completion provider for css to css language service #29113

Closed

Description

In the new emmet, you get css abbreviations inside the <style> tag. But you get it everywhere inside the style tag including the selectors which is not valid.

Contents of <style> tag should be re-parsed as css to find valid locations for emmet abbr expansion

Or the emmet completion provider for css should be moved to the css language service

Activity

  1. added
    emmet
    feature-request
    on Jun 20, 2017
  2. added
    help wanted
    on Jun 20, 2017
  3. changed the title [-]Reparse contents of <style> tag as css to enable emmet abbr validation[/-] [+]Consider moving emmet completion provider for css to css language service[/+] on Jun 26, 2017
  4. ramya-rao-a commented on Jun 26, 2017

    @ramya-rao-a
    ContributorAuthor

    Moving emmet completion to css language service will also help in sorting the emmet suggestion among css suggestions See the discussion in #28933

    This will also help giving css emmet completions inside the style attribute in html tags. See #29066

  5. 18 remaining items

  6. added
    debt
    and removed
    help wanted
    verification-needed
    verified
    feature-request
    on Mar 5, 2018
  7. jens1o commented on Mar 5, 2018

    @jens1o
    Contributor

    Will this affect the insiders release, too?

  8. ramya-rao-a commented on Mar 5, 2018

    @ramya-rao-a
    ContributorAuthor

    Jens Hausdorf (@jens1o) Yes, currently its reverted in Insiders release and will not be present in the upcoming 1.21 stable release.

  9. jens1o commented on Mar 5, 2018

    @jens1o
    Contributor

    Alright, I'll keep my eye sharp to test it once it's back ;)

  10. ramya-rao-a commented on Mar 26, 2018

    @ramya-rao-a
    ContributorAuthor

    microsoft/vscode-css-languageservice#81 and microsoft/vscode-css-languageservice#69 are 2 issues in the css language service that stops us from moving emmet to the css extension

  11. ramya-rao-a commented on Apr 23, 2018

    @ramya-rao-a
    ContributorAuthor

    Below were the advantages we were hoping for by moving the emmet css completions to the css extension

    • Emmet css completions in style attribute in html files
    • Reusing the parsing done by the css extension and not relying on the css parser from emmet which tends to get much slower for larger files.

    The second problem got solved when we implemented the partial parsing of css files last milestone. See #43470 (comment)

    The first problem can be solved in other ways.

    Since we have upstream issues that block this move and there isn't much to gain out of this move, we are closing this item and will continue to keep css emmet completions in the emmet extension itself

  12. locked and limited conversation to collaborators on Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtemmet

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions