Skip to content

Consider moving emmet completion to html completion provider in the html extension #28545

Closed

Description

  • VSCode Version: Code 1.13.0 (376c52b, 2017-06-08T16:41:25.571Z)
  • OS Version: Linux x64 4.4.0-79-generic
  • Extensions:
Extension Author Version
vscode-ungit Hirse 1.0.1
scss-lint adamwalzer 0.0.14
vscode-eslint dbaeumer 1.2.11
githistory donjayamanne 0.2.0
terminal formulahendry 0.0.8
sass-lint glen-84 0.0.4
vscode-scss mrmlnc 0.6.2
debugger-for-chrome msjsdiag 3.1.2
vscode-sass-format sasa 1.1.0

Steps to Reproduce:

  1. add "emmet.useNewEmmet": true to you settings
  2. create a new file file.hbs
  3. type an emmet expression (i.e div.foo)
  4. press tab

expected content

<div class="foo"></div>

actual content

div.foo




this issue seems to be related to #28503.

Activity

  1. ramya-rao-a commented on Jun 12, 2017

    @ramya-rao-a
    Contributor

    Ulysse Buonomo (@BuonOmo) Thanks for reporting.

    Were you using emmet.syntaxProfiles to map handlebars to html before using the new emmet?
    If yes, then lets track this in #28286

    We'll try and get this into the June milestone

  2. added
    emmet
    *duplicate
    on Jun 12, 2017
  3. BuonOmo commented on Jun 12, 2017

    @BuonOmo
    Author

    Ramya Rao (@ramya-rao-a) I wasn't. It worked when I first pressed tab in my IDE. I just tried right now, It doesn't work with or without emmet.syntaxProfiles.

  4. ramya-rao-a commented on Jun 12, 2017

    @ramya-rao-a
    Contributor

    Ah! nice catch

    In the old emmet mode, https://github.com/Microsoft/vscode/blob/0117f311aa61d1af3018ee0749702dd5e5691738/src/vs/workbench/parts/emmet/electron-browser/editorAccessor.ts#L264 ensures handlebar gets mapped to html

    This doesnt happen in the new model.

    Will look into it, thanks for reporting!

  5. added
    bug
    and removed
    *duplicate
    on Jun 12, 2017
  6. 15 remaining items

  7. york-xtrem commented on Jul 14, 2017

    @york-xtrem

    This last comment seems to me a better solution ;)
    I imagine they will end up giving a solution, support directly to handlebars.

    Thank you!

  8. ramya-rao-a commented on Jan 26, 2018

    @ramya-rao-a
    Contributor

    Update: Most of the required work is done. See #41652
    Waiting for next version of LSP that will have the change for new completion trigger kind, and so this is moved to the next iteration

  9. added
    verification-needed
    verified
    on Feb 27, 2018
  10. locked and limited conversation to collaborators on Mar 30, 2018
  11. ramya-rao-a commented on Apr 23, 2018

    @ramya-rao-a
    Contributor

    This move will be reverted in the April milestone
    See #29113 (comment) to learn about why we abandoned the move of css emmet completions to the css extension.

    Keeping emmet html completions in html extension keeps us in a weird hybrid state of having one kind of completions coming from emmet and another from another built-in extension.

    The only advantage of keeping emmet inside html extensions was the ability to get css emmet completions inside style attributes which can be achieved in other ways when emmet completions move back to the emmet extension. See 79a2512

    So, reverting the move of emmet html completions from html extension with c314388

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emmetfeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions