update
This commit is contained in:
parent
35f22d87a0
commit
32f3cd9e6e
10
package.json
10
package.json
@ -8,7 +8,7 @@
|
|||||||
"name": "AbbyCin",
|
"name": "AbbyCin",
|
||||||
"email": "abbytsing@gmail.com"
|
"email": "abbytsing@gmail.com"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "ISC",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"multi-root ready"
|
"multi-root ready"
|
||||||
],
|
],
|
||||||
@ -23,10 +23,10 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Microsoft/vscode-mock-debug.git"
|
"url": "https://git.isliberty.me/abbycin/topjs-debugger"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Microsoft/vscode-mock-debug/issues"
|
"url": "https://git.isliberty.me/abbycin/topjs-debugger/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||||
@ -66,9 +66,7 @@
|
|||||||
"configurationAttributes": {
|
"configurationAttributes": {
|
||||||
"launch": {
|
"launch": {
|
||||||
"required": [
|
"required": [
|
||||||
"program",
|
"program"
|
||||||
"runtimeExecutable",
|
|
||||||
"port"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"program": {
|
"program": {
|
||||||
|
@ -208,6 +208,10 @@ class TopJSDebugSession extends vscode_debugadapter.LoggingDebugSession {
|
|||||||
this.err(`can't find file: ${args.program}`);
|
this.err(`can't find file: ${args.program}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(!args.program.endsWith('.js')) {
|
||||||
|
this.err(`${args.program} is not a javascript file`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +224,6 @@ class TopJSDebugSession extends vscode_debugadapter.LoggingDebugSession {
|
|||||||
}
|
}
|
||||||
if(!this.validateArgs(args)) {
|
if(!this.validateArgs(args)) {
|
||||||
this.sendEvent(new vscode_debugadapter.TerminatedEvent());
|
this.sendEvent(new vscode_debugadapter.TerminatedEvent());
|
||||||
process.exit(1);
|
|
||||||
} else {
|
} else {
|
||||||
this._args = args;
|
this._args = args;
|
||||||
this._program = args.program;
|
this._program = args.program;
|
||||||
|
Loading…
Reference in New Issue
Block a user