blob: 62e03d103f95b00057a909c3665ae8ddc32b4e6f [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.1",
"daffodilVersion": "3.5.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": {
"gen-version-ts": "run-func build/yarn-scripts.ts genVersionTS",
"nodeclean": "run-func build/yarn-scripts.ts nodeclean",
"scalaclean": "run-func build/yarn-scripts.ts scalaclean",
"clean": "yarn nodeclean && yarn scalaclean",
"precompile": "yarn nodeclean && yarn gen-version-ts && yarn webpack:svelte",
"compile": "tsc -p ./ && yarn sbt",
"lint": "yarn prettier src -c",
"lint:fix": "yarn prettier src -w",
"scalawatch": "nodemon --config debugger/nodemon.json",
"prewatch": "yarn gen-version-ts && yarn sbt",
"watch": "run-func build/yarn-scripts.ts watch",
"watch:svelte": "yarn webpack --env development=true -w -c ./src/svelte/webpack.config.js",
"webpack": "webpack --mode production --config ./webpack/ext-dev.webpack.config.js",
"webpack:pkg": "webpack --mode production --config ./webpack/ext-package.webpack.config.js",
"webpack:svelte": "webpack -c ./src/svelte/webpack.config.js",
"prepackage": "yarn install && yarn compile && yarn webpack:pkg",
"package": "run-func build/yarn-scripts.ts package && yarn --cwd dist/package install && yarn --cwd dist/package vsce package --out ../../",
"pretest": "yarn compile && yarn webpack",
"test": "sbt test && node ./out/tests/runTest.js",
"sbt": "sbt debugger/Universal/packageBin",
"svelte:check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@omega-edit/client": "0.9.70",
"@vscode/debugadapter": "1.59.0",
"await-notify": "1.0.1",
"hexy": "0.3.4",
"jsonc-parser": "^3.2.0",
"@viperproject/locate-java-home": "1.1.13",
"semver": "^7.1.1",
"unzip-stream": "0.3.1",
"uuid": "9.0.0",
"wait-port": "1.0.4",
"xdg-app-paths": "8.3.0"
},
"devDependencies": {
"@tsconfig/svelte": "^3.0.0",
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.1",
"@types/vscode": "^1.60.2",
"@types/vscode-webview": "^1.57.1",
"@vscode/debugadapter-testsupport": "1.59.0",
"@vscode/test-electron": "2.1.5",
"@vscode/vsce": "2.19.0",
"chai": "^4.3.7",
"concurrently": "^8.0.1",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"glob": "8.0.3",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "10.2.0",
"nodemon": "^3.0.1",
"prettier": "2.8.8",
"prettier-plugin-svelte": "^2.9.0",
"run-func": "^3.0.0",
"sass": "^1.57.1",
"svelte": "^3.55.0",
"svelte-check": "^3.0.2",
"svelte-loader": "^3.1.9",
"svelte-preprocess": "^5.0.4",
"ts-loader": "9.4.4",
"ts-node": "^10.9.1",
"typescript": "5.1.6",
"vscode-extension-tester": "5.5.3",
"webpack": "5.88.1",
"webpack-cli": "5.1.4"
},
"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",
"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' | 'console' | 'none')",
"default": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
}
},
"tdmlConfig": {
"type": "object",
"description": "Configuration for TDML Actions",
"default": {
"action": "generate",
"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 infoset view on debug start",
"default": false
},
"openInfosetDiffView": {
"type": "boolean",
"description": "Open infoset diff view 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": {
"type": "object",
"description": "Configuration for Data Editor. Settings are port, logFile and logLevel",
"default": {
"port": 9000,
"logging": {
"file": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
}
},
"dfdlDebugger": {
"type": "object",
"description": "Configuration for debugger. Settings are logging (level and file)",
"default": {
"logging": {
"level": "INFO",
"file": "/tmp/daffodil-debugger.log"
}
}
}
}
}
},
"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}/target/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": {
"port": 9000,
"logging": {
"file": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
},
"dfdlDebugger": {
"logging": {
"level": "INFO",
"file": "/tmp/daffodil-debugger.log"
}
}
}
],
"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}/target/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": {
"port": 9000,
"logging": {
"file": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
},
"dfdlDebugger": {
"logging": {
"level": "INFO",
"file": "/tmp/daffodil-debugger.log"
}
}
}
}
],
"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}"
},
"tdmlConfig": {
"type": "object",
"description": "Configuration for TDML Actions",
"default": {
"action": "none",
"name": "${command:AskForTDMLName}",
"description": "${command:AskForTDMLDescription}",
"path": "${command:AskForTDMLPath}"
}
},
"infosetOutput": {
"type": "object",
"description": "Destination for final Infoset ('file' | 'console' | 'none')",
"default": {
"type": "file",
"path": "${workspaceFolder}/target/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 infoset view on debug start",
"default": false
},
"openInfosetDiffView": {
"type": "boolean",
"description": "Open infoset diff view 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": {
"type": "object",
"description": "Configuration for Data Editor. Settings are port, logFile and logLevel",
"default": {
"port": 9000,
"logging": {
"file": "${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
}
},
"dfdlDebugger": {
"type": "object",
"description": "Configuration for debugger. Settings are logging (level and file)",
"default": {
"logging": {
"level": "INFO",
"file": "/tmp/daffodil-debugger.log"
}
}
}
}
}
]
},
"__metadata": {
"id": "4f1304da-7e65-48f1-9126-0a143e2e5ef2",
"publisherDisplayName": "Apache Software Foundation",
"publisherId": "4dbc1d1a-d64b-46f8-8756-1c234855f645",
"isPreReleaseVersion": false
}
}