Skip to content
Permalink
Browse files
Daffodil Packaging (#1)
* Removed most things dealing with the web extension since we should not need it. Got the extension to be able check if the version of the debugger is avaiable locally, if it isn't it will download then runs the debugger pauses then the extension attaches to it.

* Updated debugger to work with windows

* Create shell script that creates the vsix file

* update icon and package strings

Co-authored-by: Shane Dell <dells@ctc.com>
Co-authored-by: John Wass <wassj@ctc.com>
  • Loading branch information
3 people committed May 25, 2021
1 parent 9a658d5 commit 8778f5d1403c365419613317eee1a50d980aa1f6
Showing 15 changed files with 153 additions and 233 deletions.
@@ -6,3 +6,5 @@ npm-debug.log
mock-debug.txt
*.vsix
.DS_Store
daffodil-debugger*
*.debug
@@ -13,58 +13,6 @@
"${workspaceFolder}/dist/ext/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Web Extension",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/sampleWebWorkerWorkspace"
],
"outFiles": [
"${workspaceFolder}/dist/web/**/*.js"
],
"preLaunchTask": "npm: watch-web"
},
{
"name": "Server",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/debugAdapter.ts",
"args": [
"--server=4711"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm: compile"
},
{
"name": "Tests",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-u", "tdd",
"--timeout", "999999",
"--colors",
"./out/tests/"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "npm: compile"
}
],
"compounds": [
{
"name": "Extension + Server",
"configurations": [ "Extension", "Server" ]
}
]
}
@@ -20,24 +20,6 @@
"$ts-webpack-watch",
"$tslint-webpack-watch"
]
},
{
"type": "npm",
"script": "compile-web",
"problemMatcher": [
"$ts-webpack",
"$tslint-webpack"
]
},
{
"type": "npm",
"script": "watch-web",
"group": "build",
"isBackground": true,
"problemMatcher": [
"$ts-webpack-watch",
"$tslint-webpack-watch"
]
}
]
}
}

This file was deleted.

@@ -0,0 +1,4 @@
#!/bin/bash
yarn install
yarn vscode:prepublish
yarn run vsce package
BIN +20.9 KB images/daffodil.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
@@ -1,34 +1,34 @@
{
"name": "mock-debug",
"displayName": "Mock Debug",
"version": "0.45.7",
"publisher": "andreweinand",
"description": "Starter extension for developing debug adapters for VS Code.",
"name": "daffodil-debug",
"displayName": "Daffodil Debug",
"version": "0.0.1",
"publisher": "Daffodil",
"description": "Daffodil Schema Debugger - debug Apache Daffodil schema files.",
"author": {
"name": "Microsoft Corporation",
"email": "aweinand@microsoft.com"
"name": "Daffodil Developers",
"email": "dev@daffodil.apache.org"
},
"license": "MIT",
"license": "Apache-2.0",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.55.0"
},
"icon": "images/mock-debug-icon.png",
"icon": "images/daffodil.jpg",
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-mock-debug.git"
"url": "https://github.com/jw3/example-daffodil-vscode.git"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-mock-debug/issues"
"url": "https://github.com/jw3/example-daffodil-vscode/issues"
},
"scripts": {
"vscode:prepublish": "yarn run package-ext && yarn run package-web",
"vscode:prepublish": "yarn run package-ext",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/extension.webpack.config.js",
@@ -37,29 +37,28 @@
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"publish": "vsce publish",
"package-ext": "webpack --mode production --config ./build/extension.webpack.config.js",
"compile-web": "webpack --devtool nosources-source-map --config ./build/web-extension.webpack.config.js",
"watch-web": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/web-extension.webpack.config.js",
"package-web": "webpack --mode production --config ./build/web-extension.webpack.config.js"
"package-ext": "webpack --mode production --config ./build/extension.webpack.config.js"
},
"dependencies": {
"await-notify": "1.0.1",
"child_process": "^1.0.2",
"unzip-stream": "^0.3.1",
"vscode-debugadapter": "^1.46.0"
},
"devDependencies": {
"@types/vscode": "^1.55.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"eslint": "^7.23.0",
"@types/vscode": "^1.55.0",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"eslint": "^7.23.0",
"glob": "^7.1.6",
"mocha": "^8.3.2",
"ts-loader": "^8.1.0",
"typescript": "^4.2.3",
"vscode-debugadapter-testsupport": "^1.46.0",
"vsce": "^1.87.1",
"ts-loader": "^8.1.0",
"vscode-debugadapter-testsupport": "^1.46.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
},
@@ -132,9 +131,11 @@
"debuggers": [
{
"type": "mock",
"languages": ["markdown"],
"languages": [
"markdown"
],
"label": "Mock Debug",
"program": "./out/debugAdapter.js",
"program": "./out/daffodilDebugger.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
@@ -194,4 +195,4 @@
}
]
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 8778f5d

Please sign in to comment.