Skip to content

Commit

Permalink
Move emmet config to extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jul 30, 2017
1 parent ebf5ca4 commit c5c70fc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
25 changes: 20 additions & 5 deletions extensions/emmet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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%"
}
}
},
Expand Down
9 changes: 8 additions & 1 deletion extensions/emmet/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c5c70fc

Please sign in to comment.