281 lines
9.7 KiB
JSON
281 lines
9.7 KiB
JSON
{
|
|
"name": "xml",
|
|
"displayName": "XML Tools",
|
|
"description": "XML Formatting, XQuery, and XPath Tools for Visual Studio Code",
|
|
"version": "2.5.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.textToXml",
|
|
"onCommand:xmlTools.xmlToText",
|
|
"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.textToXml",
|
|
"title": "XML Tools: Convert text to XML (<> -> <>)"
|
|
},
|
|
{
|
|
"command": "xmlTools.xmlToText",
|
|
"title": "XML Tools: Convert XML to text (<> -> <>)"
|
|
},
|
|
{
|
|
"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.enableXmlTreeView": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enables the XML Document view in the explorer for XML documents.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.enableXmlTreeViewMetadata": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enables attribute and child element counts in the XML Document view.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.enableXmlTreeViewCursorSync": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Enables auto-reveal of elements in the XML Document view when a start tag is clicked in the editor.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.enforcePrettySelfClosingTagOnFormat": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Enforces a space before the forward slash at the end of a self-closing XML tag.",
|
|
"scope": "resource"
|
|
},
|
|
"xmlTools.ignoreDefaultNamespace": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Ignore default xmlns attributes when evaluating XPath.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.persistXPathQuery": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Remember the last XPath query used.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.removeCommentsOnMinify": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Remove XML comments during minification.",
|
|
"scope": "resource"
|
|
},
|
|
"xmlTools.splitAttributesOnFormat": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Put each attribute on a new line when formatting XML. Overrides `xmlTools.splitXmlnsOnFormat` if set to `true`.",
|
|
"scope": "resource"
|
|
},
|
|
"xmlTools.splitXmlnsOnFormat": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Put each xmlns attribute on a new line when formatting XML.",
|
|
"scope": "resource"
|
|
},
|
|
"xmlTools.xmlFormatterImplementation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"classic",
|
|
"v2"
|
|
],
|
|
"default": "v2",
|
|
"description": "Supported XML Formatters: classic",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.xqueryExecutionArguments": {
|
|
"type": "array",
|
|
"default": [
|
|
"-xquery",
|
|
"$(script)",
|
|
"-in",
|
|
"$(input)",
|
|
"-out",
|
|
"$(input).output.xml"
|
|
],
|
|
"description": "Arguments to be passed to the XQuery execution engine.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.xqueryExecutionEngine": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "The full path to the executable to run when executing XQuery scripts.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.xqueryExecutionInputLimit": {
|
|
"type": "integer",
|
|
"default": 100,
|
|
"description": "The maximum number of input files to enumerate when executing XQuery scripts.",
|
|
"scope": "window"
|
|
},
|
|
"xmlTools.xqueryExecutionInputSearchPattern": {
|
|
"type": "string",
|
|
"default": "**/*.xml",
|
|
"description": "The pattern used to search for input XML files when executing XQuery scripts.",
|
|
"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": "xml",
|
|
"extensions": [
|
|
".config",
|
|
".csproj",
|
|
".xml",
|
|
".xsd",
|
|
".xsl"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
}
|