Skip to content
Permalink
Browse files
  • Loading branch information
arosien committed Aug 24, 2021
2 parents 3fda13b + fc57583 commit 8c86acb9aa0fb4f2abe4e77c3c577b5e400a0c77
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
@@ -1,7 +1,7 @@
{
"name": "daffodil-debug",
"displayName": "Daffodil Debug",
"version": "0.0.10",
"version": "0.0.11-pre1",
"publisher": "jw3",
"description": "Daffodil Schema Debugger: debug DFDL schema files using Apache Daffodil.",
"license": "Apache-2.0",
@@ -13,7 +13,8 @@
},
"icon": "images/daffodil.jpg",
"categories": [
"Debuggers", "Snippets"
"Debuggers",
"Snippets"
],
"private": true,
"repository": {
@@ -220,11 +221,11 @@
"program": "${command:AskForProgramName}",
"stopOnEntry": true,
"data": "${command:AskForDataName}",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/infoset.xml"
},
"debugServer": 4711
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/infoset.xml"
},
"debugServer": 4711
}
],
"configurationSnippets": [
@@ -253,4 +254,4 @@
}
]
}
}
}
@@ -14,8 +14,8 @@ class Backend {
}

class Artifact {
constructor(readonly daffodilVersion: string, readonly version: string = LIB_VERSION) {}
constructor(readonly daffodilVersion: string, readonly version: string = LIB_VERSION) { }

name = `daffodil-debugger-${this.daffodilVersion}-${this.version}`;
archive = `${this.name}.zip`;
archiveUrl = (backend: Backend) => `https://github.com/${backend.owner}/${backend.repo}/releases/download/v${this.version}/${this.archive}`;
@@ -49,11 +49,11 @@ export async function getDataFileFromFolder(dataFolder: string) {
canSelectMany: false, openLabel: 'Select',
canSelectFiles: true, canSelectFolders: false, defaultUri: vscode.Uri.parse(dataFolder)
})
.then(fileUri => {
if (fileUri && fileUri[0]) {
return fileUri[0].fsPath;
}
});
.then(fileUri => {
if (fileUri && fileUri[0]) {
return fileUri[0].fsPath;
}
});
}

// Function for getting the daffodil-debugger
@@ -108,7 +108,7 @@ export async function getDebugger(config: vscode.DebugConfiguration) {
// Stop debugger if running
if (os.platform() === 'win32') {
// Windows stop debugger if already running
child_process.execSync("tskill java");
child_process.execSync('tskill java 2>nul 1>nul || echo "Java not running"');
}
else {
// Linux/Mac stop debugger if already running and make sure script is executable

0 comments on commit 8c86acb

Please sign in to comment.