Skip to content

Provide css emmet abbr suggestions when inside style attribute in html files #29066

Closed

Description

<div style="d|"></div>

In the above case, there are no suggestions from the emmet completion provider.
Css abbreviations should be suggested.

Activity

  1. added
    emmet
    feature-request
    on Jun 20, 2017
  2. added
    help wanted
    on Jun 20, 2017
  3. ramya-rao-a commented on Jun 27, 2017

    @ramya-rao-a
    ContributorAuthor

    Closing this as #29113 can cover this feature ask

  4. locked and limited conversation to collaborators on Nov 18, 2017
  5. ramya-rao-a commented on Feb 20, 2018

    @ramya-rao-a
    ContributorAuthor

    In the latest Insiders it is possible to get css emmet completions inside the style attribute but only if there is a space after the "
    <div style=" dn| "> would give the right completion i.e display: none
    but <div style="dn|"> wouldn't give any completion

    This is because we assume that current word is the abbreviation in case of css. With emmetio/extract-abbreviation@ee01c36 we can use the extract-abbreviation module to fetch the abbreviation correctly

  6. ramya-rao-a commented on Feb 27, 2018

    @ramya-rao-a
    ContributorAuthor

    Emmet completions are now included but only when either manually triggered or when the abbreviation contains non word characters. Currently blocked on #13735

  7. ramya-rao-a commented on Mar 11, 2018

    @ramya-rao-a
    ContributorAuthor

    Turns out the problem is that completions don't get triggered inside strings. Adding the below will give emmet completions inside the style attribute as expected:

    "editor.quickSuggestions": {
            "other": true,
            "comments": false,
            "strings": true
        }
    

    cc G.M. Hurovich (@gushuro)

  8. changed the title [-]Provide css emmet abbr suggestions when inside style attribute[/-] [+]Provide css emmet abbr suggestions when inside style attribute in html files[/+] on Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emmetfeature-requesthelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions