blob: b0f8cf1cfb07d6a82ee0ab0eb5100d8169083220 [file] [log] [blame]
{
"name": "apache-daffodil-vscode",
"displayName": "Apache Daffodilâ„¢ Extension for Visual Studio Code",
"description": "Apache Daffodilâ„¢ Extension for Visual Studio Code providing DFDL syntax highlighting, DFDL code completion, DFDL schema debugging, and data editor",
"version": "1.3.0",
"daffodilVersion": "3.4.0",
"publisher": "asf",
"author": "Apache Daffodil",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.60.2"
},
"icon": "images/daffodil.ico",
"categories": [
"Debuggers",
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/apache/daffodil-vscode.git"
},
"bugs": {
"url": "https://github.com/apache/daffodil-vscode/issues"
},
"scripts": {
"postinstall": "cd src/svelte && yarn install",
"gen-version-ts": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"precompile": "yarn gen-version-ts && cd src/svelte && yarn build",
"compile": "tsc -p ./ && yarn sbt",
"lint": "yarn prettier src -c && cd src/svelte && yarn lint",
"lint:fix": "yarn prettier src -w && cd src/svelte && yarn lint:fix",
"prewatch": "yarn gen-version-ts && yarn sbt",
"watch": "concurrently --kill-others \"webpack --watch --devtool nosources-source-map --config ./build/extension.webpack.config.js\" \"yarn watch:svelte\"",
"watch:svelte": "cd src/svelte && yarn dev",
"webpack": "webpack --mode production --config ./build/extension.webpack.config.js",
"prepackage": "yarn install && yarn compile && yarn webpack",
"package": "yarn package-setup && yarn package-create",
"package-setup": "node -e \"require('./build/scripts/package.ts').setup()\"",
"package-create": "node -e \"require('./build/scripts/package.ts').create()\"",
"pretest": "yarn compile && yarn webpack",
"test": "sbt test && node ./out/tests/runTest.js",
"sbt": "sbt universal:packageBin"
},
"dependencies": {
"@vscode/debugadapter": "1.59.0",
"@omega-edit/client": "0.9.63",
"await-notify": "1.0.1",
"hexy": "0.3.4",
"unzip-stream": "0.3.1",
"uuid": "9.0.0",
"wait-port": "1.0.4",
"xdg-app-paths": "8.3.0"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.15.3",
"@types/vscode": "^1.60.2",
"@vscode/debugadapter-testsupport": "1.59.0",
"@vscode/test-electron": "2.1.5",
"@vscode/vsce": "2.19.0",
"chai": "^4.3.7",
"concurrently": "^7.0.0",
"glob": "8.0.3",
"mocha": "10.2.0",
"prettier": "2.8.7",
"ts-loader": "8.1.0",
"ts-node": "^10.9.1",
"typescript": "4.6.2",
"vscode-extension-tester": "5.5.2",
"webpack": "5.76.0",
"webpack-cli": "5.0.1"
},
"extensionDependencies": [
"vincaslt.highlight-matching-tag",
"wmanth.jar-viewer"
],
"main": "./dist/ext/extension.js",
"activationEvents": [
"onLanguage:dfdl",
"onDebugResolve:dfdl",
"onDebugDynamicConfigurations:dfdl",
"onCommand:extension.dfdl-debug.getProgramName",
"onCommand:extension.dfdl-debug.getDataName",
"onCommand:extension.dfdl-debug.runEditorContents",
"onCommand:extension.dfdl-debug.debugEditorContents",
"onCommand:extension.dfdl-debug.generateTDML",
"onCommand:extension.dfdl-debug.appendTDML",
"onCommand:extension.dfdl-debug.executeTDML",
"onCommand:extension.dfdl-debug.getTDMLName",
"onCommand:extension.dfdl-debug.getTDMLDescription",
"onCommand:extension.dfdl-debug.getTDMLPath",
"onCommand:extension.dfdl-debug.getValidatedTDMLPath",
"onCommand:launch.config",
"onCommand:extension.data.edit",
"onCommand:extension.dfdl-debug.debugLastEditorContents"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"languages": [
{
"id": "dfdl",
"aliases": [
"dfdl"
],
"extensions": [
".dfdl.xsd"
],
"configuration": "./language/dfdl.json"
}
],
"grammars": [
{
"language": "dfdl",
"scopeName": "text.xml.dfdl.xsd",
"path": "./language/syntaxes/dfdl.tmLanguage.json"
}
],
"menus": {
"editor/title": [
{
"command": "launch.config",
"group": "navigation@1"
},
{
"command": "hexview.display",
"when": "resourceLangId == dfdl",
"group": "navigation@4"
},
{
"command": "infoset.display",
"when": "resourceLangId == dfdl",
"group": "navigation@2"
},
{
"command": "infoset.diff",
"when": "resourceLangId == dfdl",
"group": "navigation@3"
}
],
"editor/title/run": [
{
"command": "extension.dfdl-debug.runEditorContents",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.debugEditorContents",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.debugLastEditorContents",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.generateTDML",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.appendTDML",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.executeTDML",
"when": "resourceLangId == dfdl"
}
],
"commandPalette": [
{
"command": "extension.dfdl-debug.debugEditorContents",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.runEditorContents",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.generateTDML",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.appendTDML",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.dfdl-debug.executeTDML",
"when": "resourceLangId == dfdl"
},
{
"command": "extension.data.edit"
},
{
"command": "extension.dfdl-debug.debugLastEditorContents",
"when": "resourceLangId == dfdl"
}
],
"debug/variables/context": [
{
"command": "extension.dfdl-debug.toggleFormatting",
"when": "debugType == 'dfdl' && debugProtocolVariableMenuContext == 'simple'"
}
]
},
"commands": [
{
"command": "extension.dfdl-debug.debugEditorContents",
"title": "Debug File",
"category": "Daffodil Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.dfdl-debug.runEditorContents",
"title": "Run File",
"category": "Daffodil Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "extension.dfdl-debug.debugLastEditorContents",
"title": "Debug Last File",
"category": "Daffodil Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.dfdl-debug.generateTDML",
"title": "Generate TDML",
"category": "Daffodil Debug",
"enablement": "!inDebugMode"
},
{
"command": "extension.dfdl-debug.appendTDML",
"title": "Append TDML",
"category": "Daffodil Debug",
"enablement": "!inDebugMode"
},
{
"command": "extension.dfdl-debug.executeTDML",
"title": "Execute TDML",
"category": "Daffodil Debug",
"enablement": "!inDebugMode"
},
{
"command": "extension.dfdl-debug.toggleFormatting",
"title": "Toggle between decimal and hex formatting",
"category": "Daffodil Debug",
"enablement": "inDebugMode"
},
{
"command": "hexview.display",
"title": "Display the hex view",
"category": "Daffodil Debug",
"enablement": "inDebugMode",
"icon": "$(file-binary)"
},
{
"command": "infoset.display",
"title": "Display the infoset view",
"category": "Daffodil Debug",
"enablement": "inDebugMode",
"icon": "$(file-code)"
},
{
"command": "infoset.diff",
"title": "View infoset diff",
"category": "Daffodil Debug",
"enablement": "inDebugMode",
"icon": "$(diff)"
},
{
"command": "infoset.save",
"title": "Save the current infoset",
"category": "Daffodil Debug",
"enablement": "inDebugMode"
},
{
"command": "launch.config",
"title": "Configure launch.json",
"category": "Daffodil Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-configure)"
},
{
"command": "extension.data.edit",
"title": "Data Editor",
"category": "Daffodil Debug"
},
{
"command": "position.goto",
"title": "Go to position",
"category": "Daffodil Debug"
}
],
"keybindings": [
{
"command": "position.goto",
"key": "ctrl+alt+g",
"mac": "ctrl+cmd+g",
"when": "editorTextFocus"
}
],
"breakpoints": [
{
"language": "dfdl"
}
],
"debuggers": [
{
"type": "dfdl",
"languages": [
"dfdl"
],
"label": "Daffodil Debug",
"program": "./out/extension.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program",
"data"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the DFDL schema file.",
"default": "${command:AskForProgramName}"
},
"data": {
"type": "string",
"description": "Absolute path to the input data file.",
"default": "${command:AskForDataName}"
},
"infosetFormat": {
"type": "string",
"description": "Infoset format type (xml/json)",
"enum": [
"xml",
"json"
],
"default": "xml"
},
"infosetOutput": {
"type": "object",
"description": "Destination for final Infoset (file-path | 'console' | 'none')",
"default": {
"type": "console",
"path": "${workspaceFolder}/infoset.xml"
}
},
"tdmlConfig": {
"type": "object",
"description": "Configuration for TDML Actions",
"default": {
"action": "none",
"name": "${command:AskForTDMLName}",
"description": "${command:AskForTDMLDescription}",
"path": "${command:AskForTDMLPath}"
}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"debugServer": {
"type": "integer",
"description": "Port debug server running on",
"default": 4711
},
"useExistingServer": {
"type": "boolean",
"description": "Enable connection to running DAP Server",
"default": false
},
"openHexView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"openInfosetView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"openInfosetDiffView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"daffodilDebugClasspath": {
"type": "string",
"description": "Additional classpaths to be exported to the debugger",
"default": ""
},
"variables": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"tunables": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"dataEditor.omegaEditPort": {
"type": "integer",
"description": "Editor server default port",
"default": 9000
},
"dataEditor.logFile": {
"type": "string",
"description": "Path to log file for data editor",
"default": "${workspaceFolder}/dataEditor-${omegaEditPort}.log"
},
"dataEditor.logLevel": {
"type": "string",
"description": "Log level for data editor",
"enum": [
"error",
"warn",
"info",
"debug",
"trace"
],
"default": "info"
}
}
}
},
"initialConfigurations": [
{
"type": "dfdl",
"request": "launch",
"name": "Ask for file name",
"program": "${command:AskForProgramName}",
"stopOnEntry": true,
"data": "${command:AskForDataName}",
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/infoset.xml"
},
"tdmlConfig": {
"action": "none",
"name": "${command:AskForTDMLName}",
"description": "${command:AskForTDMLDescription}",
"path": "${command:AskForTDMLPath}"
},
"debugServer": 4711,
"openHexView": false,
"openInfosetView": false,
"openInfosetDiffView": false,
"daffodilDebugClasspath": "",
"variables": {},
"tunables": {},
"dataEditor.omegaEditPort": 9000,
"dataEditor.logFile": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"dataEditor.logLevel": "info"
}
],
"configurationSnippets": [
{
"label": "Daffodil Debug: Launch",
"description": "A new configuration for 'debugging' a user selected xml file.",
"body": {
"type": "dfdl",
"request": "launch",
"name": "Ask for file name",
"program": "^\"\\${command:AskForProgramName}\"",
"stopOnEntry": true,
"data": "^\"\\${command:AskForDataName}\"",
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/infoset.xml"
},
"tdmlConfig": {
"action": "none",
"name": "^\"\\${command:AskForTDMLName}\"",
"description": "^\"\\${command:AskForTDMLDescription}\"",
"path": "^\"\\${command:AskForTDMLPath}\""
},
"debugServer": 4711,
"openHexView": false,
"openInfosetView": false,
"openInfosetDiffView": false,
"daffodilDebugClasspath": "",
"variables": {},
"tunables": {},
"dataEditor.omegaEditPort": 9000,
"dataEditor.logFile": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"dataEditor.logLevel": "info"
}
}
],
"variables": {
"AskForProgramName": "extension.dfdl-debug.getProgramName",
"AskForDataName": "extension.dfdl-debug.getDataName",
"AskForTDMLName": "extension.dfdl-debug.getTDMLName",
"AskForTDMLDescription": "extension.dfdl-debug.getTDMLDescription",
"AskForTDMLPath": "extension.dfdl-debug.getTDMLPath",
"AskForValidatedTDMLPath": "extension.dfdl-debug.getValidatedTDMLPath"
}
}
],
"configuration": [
{
"title": "Daffodil Debugger Global",
"properties": {
"type": {
"type": "string",
"default": "dfdl"
},
"program": {
"type": "string",
"description": "Absolute path to the DFDL schema file.",
"default": "${command:AskForProgramName}"
},
"data": {
"type": "string",
"description": "Absolute path to the input data file.",
"default": "${command:AskForDataName}"
},
"tdmlAction": {
"type": "string",
"description": "TDML Action to take (generate | append | execute | none)",
"enum": [
"generate",
"append",
"execute",
"none"
],
"default": "none"
},
"tdmlName": {
"type": "string",
"description": "Name of the TDML Test Case",
"default": "${command:AskForTDMLName}"
},
"tdmlDescription": {
"type": "string",
"description": "Description of the TDML Test Case",
"default": "${command:AskForTDMLDescription}"
},
"tdmlPath": {
"type": "string",
"description": "Path to output for TDML file (req: tdmlAction=generate)",
"default": "${command:AskForTDMLPath}"
},
"infosetOutputType": {
"type": "string",
"description": "Destination for final Infoset (file | 'console' | 'none')",
"enum": [
"file",
"console",
"none"
],
"default": "none"
},
"infosetOutputFilePath": {
"type": "string",
"description": "Path to output for Infoset file (req: infosetOutput=file)",
"default": "${workspaceFolder}/infoset.xml"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"useExistingServer": {
"type": "boolean",
"description": "Enable connection to running DAP Server",
"default": false
},
"debugServer": {
"type": "integer",
"description": "Port debug server running on",
"default": 4711
},
"openHexView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"openInfosetView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"openInfosetDiffView": {
"type": "boolean",
"description": "Open hexview on debug start",
"default": false
},
"daffodilDebugClasspath": {
"type": "string",
"description": "Additional classpaths to be exported to the debugger",
"default": ""
},
"variables": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"tunables": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"dataEditor.omegaEditPort": {
"type": "integer",
"description": "Editor server default port",
"default": 9000
},
"dataEditor.logFile": {
"type": "string",
"description": "Path to log file for data editor",
"default": "${workspaceFolder}/dataEditor-${omegaEditPort}.log"
},
"dataEditor.logLevel": {
"type": "string",
"description": "Log level for data editor",
"enum": [
"error",
"warn",
"info",
"debug",
"trace"
],
"default": "info"
}
}
}
]
},
"__metadata": {
"id": "4f1304da-7e65-48f1-9126-0a143e2e5ef2",
"publisherDisplayName": "Apache Software Foundation",
"publisherId": "4dbc1d1a-d64b-46f8-8756-1c234855f645",
"isPreReleaseVersion": false
}
}