vscode-xml/package.json
2018-05-31 22:15:29 -04:00

363 lines
14 KiB
JSON

{
"name": "xml",
"displayName": "XML Tools",
"description": "XML Formatting, XQuery, and XPath Tools for Visual Studio Code",
"version": "2.2.0",
"preview": false,
"publisher": "DotJoshJohnson",
"author": {
"name": "Josh Johnson",
"url": "https://github.com/DotJoshJohnson"
},
"galleryBanner": {
"color": "#FFFFFF",
"theme": "light"
},
"icon": "resources/xml.png",
"homepage": "https://github.com/DotJoshJohnson/vscode-xml",
"repository": {
"type": "git",
"url": "https://github.com/DotJoshJohnson/vscode-xml.git"
},
"bugs": {
"url": "https://github.com/DotJoshJohnson/vscode-xml/issues"
},
"engines": {
"vscode": "^1.22.2"
},
"categories": [
"Formatters",
"Programming Languages",
"Linters",
"Other"
],
"activationEvents": [
"onCommand:xmlTools.evaluateXPath",
"onCommand:xmlTools.executeXQuery",
"onCommand:xmlTools.formatAsXml",
"onCommand:xmlTools.minifyXml",
"onLanguage:xml",
"onLanguage:xquery",
"onLanguage:xsl"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "xmlTools.evaluateXPath",
"title": "XML Tools: Evaluate XPath"
},
{
"command": "xmlTools.executeXQuery",
"title": "XML Tools: Execute XQuery"
},
{
"command": "xmlTools.formatAsXml",
"title": "XML Tools: Format as XML"
},
{
"command": "xmlTools.getCurrentXPath",
"title": "XML Tools: Get Current XPath"
},
{
"command": "xmlTools.minifyXml",
"title": "XML Tools: Minify XML"
}
],
"configuration": {
"title": "XML Tools Configuration",
"type": "object",
"properties": {
"xmlTools.core.useNewSettings": {
"type": "boolean",
"default": false,
"description": "Enables use of the new 'nested' settings instead of the current 'flattened' settings."
},
"xmlTools.formatter.addSpaceBeforeSelfClose": {
"type": "boolean",
"default": true,
"description": "Ensures a space exists before the '/>' in self-closing tags.",
"scope": "resource"
},
"xmlTools.formatter.implementation": {
"type": "string",
"default": "v2",
"description": "Defines the XML formatter implementation used for formatting and minification.",
"enum": [
"classic",
"v2"
],
"scope": "application"
},
"xmlTools.formatter.splitAttributes": {
"type": "boolean",
"default": false,
"description": "Places each attribute (except the first) on a new line. Includes xmlns attributes.",
"scope": "resource"
},
"xmlTools.formatter.splitXmlnsAttributes": {
"type": "boolean",
"default": false,
"description": "Places each xmlns attribute on a new line.",
"scope": "resource"
},
"xmlTools.formatter.stripCommentsOnMinify": {
"type": "boolean",
"default": false,
"description": "Removes comments from XML during minification.",
"scope": "resource"
},
"xmlTools.treeView.enabled": {
"type": "boolean",
"default": true,
"description": "Enables the XML Tree View feature.",
"scope": "application"
},
"xmlTools.treeView.showMetadata": {
"type": "boolean",
"default": true,
"description": "Displays attributes such as 'children' and 'attributes' counts in the XML tree view.",
"scope": "application"
},
"xmlTools.treeView.syncCursor": {
"type": "boolean",
"default": false,
"description": "Reveals an element or atribute in the tree view when clicked in the editor.",
"scope": "application"
},
"xmlTools.xpath.ignoreDefaultNamespace": {
"type": "boolean",
"default": true,
"description": "Ignores default xmlns attributes.",
"scope": "application"
},
"xmlTools.xpath.rememberLastQuery": {
"type": "boolean",
"default": true,
"description": "Remembers the last query you executed for the current file.",
"scope": "application"
},
"xmlTools.xquery.executable": {
"type": "string",
"default": true,
"description": "The full path to the executable to use for executing scripts.",
"scope": "application"
},
"xmlTools.xquery.executableArgs": {
"type": "array",
"default": [
"-xquery",
"$(script)",
"-in",
"$(input)",
"-out",
"$(input).output.xml"
],
"description": "Command-line arguments to pass to the executable.",
"scope": "application"
},
"xmlTools.xquery.inputFilesLimit": {
"type": "integer",
"default": 100,
"description": "The maximum number of input files to enumerate.",
"scope": "application"
},
"xmlTools.xquery.inputFilesSearchPattern": {
"type": "string",
"default": "**/*.xml",
"description": "The pattern used to search for input XML files.",
"scope": "application"
},
"xmlTools.enableXmlTreeView": {
"type": "boolean",
"default": true,
"description": "Deprecated. Use 'xmlTools.treeView.enabled' instead.",
"scope": "window"
},
"xmlTools.enableXmlTreeViewMetadata": {
"type": "boolean",
"default": true,
"description": "Deprecated. Use 'xmlTools.treeView.showMetadata' instead.",
"scope": "window"
},
"xmlTools.enableXmlTreeViewCursorSync": {
"type": "boolean",
"default": false,
"description": "Deprecated. Use 'xmlTools.treeView.syncCursor' instead.",
"scope": "window"
},
"xmlTools.enforcePrettySelfClosingTagOnFormat": {
"type": "boolean",
"default": false,
"description": "Deprecated. Use 'xmlTools.formatter.addSpaceBeforeSelfClose' instead.",
"scope": "resource"
},
"xmlTools.ignoreDefaultNamespace": {
"type": "boolean",
"default": true,
"description": "Deprecated. Use 'xmlTools.xpath.ignoreDefaultNamespace' instead.",
"scope": "window"
},
"xmlTools.persistXPathQuery": {
"type": "boolean",
"default": true,
"description": "Deprecated. Use 'xmlTools.xpath.rememberLastQuery' instead.",
"scope": "window"
},
"xmlTools.removeCommentsOnMinify": {
"type": "boolean",
"default": false,
"description": "Deprecated. Use 'xmlTools.formatter.removeCommentsOnMinify' instead.",
"scope": "resource"
},
"xmlTools.splitAttributesOnFormat": {
"type": "boolean",
"default": false,
"description": "Deprecated. Use 'xmlTools.formatter.splitAttributes' instead.",
"scope": "resource"
},
"xmlTools.splitXmlnsOnFormat": {
"type": "boolean",
"default": true,
"description": "Deprecated. Use 'xmlTools.formatter.splitXmlnsAttributes' instead.",
"scope": "resource"
},
"xmlTools.xmlFormatterImplementation": {
"type": "string",
"enum": [
"classic",
"v2"
],
"default": "v2",
"description": "Deprecated. Use 'xmlTools.formatter.implementation' instead.",
"scope": "window"
},
"xmlTools.xqueryExecutionArguments": {
"type": "array",
"default": [
"-xquery",
"$(script)",
"-in",
"$(input)",
"-out",
"$(input).output.xml"
],
"description": "Deprecated. Use 'xmlTools.xquery.executableArgs' instead.",
"scope": "window"
},
"xmlTools.xqueryExecutionEngine": {
"type": "string",
"default": "",
"description": "Deprecated. Use 'xmlTools.xquery.executable' instead.",
"scope": "window"
},
"xmlTools.xqueryExecutionInputLimit": {
"type": "integer",
"default": 100,
"description": "Deprecated. Use 'xmlTools.xquery.inputFileLimit' instead.",
"scope": "window"
},
"xmlTools.xqueryExecutionInputSearchPattern": {
"type": "string",
"default": "**/*.xml",
"description": "Deprecated. Use 'xmlTools.xquery.inputFileSearchPattern' instead.",
"scope": "window"
}
}
},
"grammars": [
{
"language": "xquery",
"path": "./languages/xquery/xquery.tmLanguage",
"scopeName": "source.xquery"
}
],
"keybindings": [
{
"key": "ctrl+shift+alt+x",
"command": "xmlTools.evaluateXPath"
},
{
"key": "ctrl+shift+alt+b",
"command": "xmlTools.formatAsXml"
}
],
"languages": [
{
"id": "xquery",
"aliases": [
"XQuery",
"xquery"
],
"extensions": [
".xq",
".xql",
".xqm",
".xqy",
".xquery"
],
"configuration": "./languages/xquery/xquery.json"
}
],
"menus": {
"commandPalette": [
{
"command": "xmlTools.evaluateXPath",
"when": "editorLangId == xml"
},
{
"command": "xmlTools.executeXQuery",
"when": "editorLangId == xquery"
},
{
"command": "xmlTools.getCurrentXPath",
"when": "editorLangId == xml"
},
{
"command": "xmlTools.minifyXml",
"when": "editorLangId == xml"
}
],
"editor/context": [
{
"command": "xmlTools.minifyXml",
"group": "1_modification@100",
"when": "editorLangId == 'xml'"
}
]
},
"views": {
"explorer": [
{
"id": "xmlTreeView",
"name": "XML Document",
"when": "xmlTreeViewEnabled"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "npm run lint && tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && mocha ./out/test/**/*.js",
"lint": "tslint -p tslint.json --fix"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"@types/xmldom": "^0.1.29",
"tslint": "^5.9.1",
"typescript": "^2.6.1",
"vscode": "^1.1.16"
},
"dependencies": {
"xmldom": "^0.1.27",
"xpath": "0.0.27",
"xqlint": "^0.4.1"
}
}