Skip to content

"emmet.extensionsPath" incompatible with "emmet.useNewEmmet": true #28465

Closed

Description

VS Code version OS
1.13.0 Win x64 pro (french)

The new Emmet feature is awesome. Unfortunately, it will ignore the user setting "emmet.extensionsPath".

Steps to reproduce

  1. in settings.json:
    "emmet.extensionsPath": "path to\\Emmet Settings",
    "emmet.useNewEmmet": true,
  1. In Emmet Settings directory set above there is a custom snippets.json file containing for instance:
{
	"variables": {
		"charset": "UTF-8",
		"indentation": "\t",
		"lang": "fr",
		"locale": "fr-FR",
		"newline": "\n"
	},
	"html": {
		"abbreviations": {
			"doc": "html>(head>meta[charset=${charset}]+meta:vp+meta:edge+title{${1:Document}})+body",
			"html:5": "!!!+doc[lang=${lang}]"
		},
		"filters": "html",
		"profile": "html",
		"snippets": {
			"!!!": "<!DOCTYPE html>"
		}
	}
}
  1. In a HTML file use the emmet html:5 snippet

Result

Custom emmet snippets are ignored. Lang applied is "en". Same goes for any emmet custom snippets in "emmet.extensionsPath": "path to\\Emmet Settings": html, css, etc.

It will work as intended if "emmet.useNewEmmet": false

I hope this incompatibility issue with custom emmet settings will be solve.

Activity

  1. changed the title [-]Emmet: "emmet.extensionsPath" incompatible with "emmet.useNewEmmet": true[/-] [+]"emmet.extensionsPath" incompatible with "emmet.useNewEmmet": true[/+] on Jun 11, 2017
  2. ramya-rao-a commented on Jun 12, 2017

    @ramya-rao-a
    Contributor

    Yes, in the new emmet model, its not very straight forward to re-use the previous custom snippets

    I have included the investigation for this in #27697

    Thanks for reporting!

  3. ramya-rao-a commented on Jun 20, 2017

    @ramya-rao-a
    Contributor

    With ac60143 the syntaxProfiles.json and snippets.json from emmet.extensionsPath will be used.

    The new emmet modules do not use the old style snippets. So only the variables section of the snippets.json will be honored.

    Logged #29146 to track the inclusion of custom snippets

  4. added
    feature-request
    verification-needed
    on Jun 26, 2017
  5. ramya-rao-a commented on Jun 26, 2017

    @ramya-rao-a
    Contributor

    Note to verifier:

  6. added
    verified
    on Jun 28, 2017
  7. locked and limited conversation to collaborators on Nov 17, 2017
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