Move emmet config to extension

This commit is contained in:
Ramya Achutha Rao 2017-07-30 16:29:31 -07:00
parent ebf5ca4f91
commit c5c70fc876
3 changed files with 28 additions and 21 deletions

View file

@ -33,18 +33,18 @@
"inMarkupAndStylesheetFilesOnly"
],
"default": "inMarkupAndStylesheetFilesOnly",
"description": "Applicable only when emmet.useNewEmmet is set to true.\nShows expanded emmet abbreviations as suggestions.\nThe option \"inMarkupAndStylesheetFilesOnly\" applies to html, haml, jade, slim, xml, xsl, css, scss, sass, less and stylus.\nThe option \"always\" applies to all parts of the file regardless of markup/css."
"description": "%emmetShowExpandedAbbreviation%"
},
"emmet.showAbbreviationSuggestions": {
"type": "boolean",
"default": true,
"description": "Applicable only when emmet.useNewEmmet is set to true.\nShows possible emmet abbreviations as suggestions. Not applicable in stylesheets or when emmet.showExpandedAbbreviation is set to \"never\"."
"description": "%emmetShowAbbreviationSuggestions%"
},
"emmet.includeLanguages": {
"type": "object",
"default": {},
"description": "Applicable only when emmet.useNewEmmet is set to true.\nEnable emmet abbreviations in languages that are not supported by default. Add a mapping here between the language and emmet supported language.\n Eg: {\"vue-html\": \"html\", \"javascript\": \"javascriptreact\"}"
},
"description": "%emmetIncludeLanguages%"
},
"emmet.variables": {
"type": "object",
"properties": {
@ -58,7 +58,22 @@
}
},
"default": {},
"description": "Applicable only when emmet.useNewEmmet is set to true.\nVariables to be used in emmet snippets"
"description": "%emmetVariables%"
},
"emmet.syntaxProfiles":{
"type": "object",
"default": {},
"description": "%emmetSyntaxProfiles%"
},
"emmet.excludeLanguages":{
"type": "array",
"default": ["markdown"],
"description": "%emmetExclude%"
},
"emmet.extensionsPath": {
"type": "string",
"default": null,
"description": "%emmetExtensionsPath%"
}
}
},

View file

@ -19,5 +19,12 @@
"command.incrementNumberByOneTenth": "Increment by 0.1",
"command.decrementNumberByOneTenth": "Decrement by 0.1",
"command.incrementNumberByTen": "Increment by 10",
"command.decrementNumberByTen": "Decrement by 10"
"command.decrementNumberByTen": "Decrement by 10",
"emmetSyntaxProfiles": "Define profile for specified syntax or use your own profile with specific rules.",
"emmetExclude": "An array of languages where emmet abbreviations should not be expanded.",
"emmetExtensionsPath": "Path to a folder containing emmet profiles, snippets and preferences. Only profiles are honored from extensions path when emmet.useNewEmmet is set to true.'",
"emmetShowExpandedAbbreviation": "Shows expanded emmet abbreviations as suggestions.\nThe option \"inMarkupAndStylesheetFilesOnly\" applies to html, haml, jade, slim, xml, xsl, css, scss, sass, less and stylus.\nThe option \"always\" applies to all parts of the file regardless of markup/css.",
"emmetShowAbbreviationSuggestions": "Shows possible emmet abbreviations as suggestions. Not applicable in stylesheets or when emmet.showExpandedAbbreviation is set to \"never\".",
"emmetIncludeLanguages": "Enable emmet abbreviations in languages that are not supported by default. Add a mapping here between the language and emmet supported language.\n Eg: {\"vue-html\": \"html\", \"javascript\": \"javascriptreact\"}",
"emmetVariables": "Variables to be used in emmet snippets"
}

View file

@ -31,21 +31,6 @@ configurationRegistry.registerConfiguration({
'default': {},
'description': nls.localize('emmetPreferences', "Preferences used to modify behavior of some actions and resolvers of Emmet. Not applicable when emmet.useNewemmet is set to true.")
},
'emmet.syntaxProfiles': {
'type': 'object',
'default': {},
'description': nls.localize('emmetSyntaxProfiles', "Define profile for specified syntax or use your own profile with specific rules.")
},
'emmet.excludeLanguages': {
'type': 'array',
'default': ['markdown'],
'description': nls.localize('emmetExclude', "An array of languages where emmet abbreviations should not be expanded.")
},
'emmet.extensionsPath': {
'type': 'string',
'default': null,
'description': nls.localize('emmetExtensionsPath', 'Path to a folder containing emmet profiles, snippets and preferences. Only profiles are honored from extensions path when emmet.useNewEmmet is set to true.')
},
'emmet.useNewEmmet': {
'type': 'boolean',
'default': true,