update
This commit is contained in:
+4
-1
@@ -208,6 +208,10 @@ class TopJSDebugSession extends vscode_debugadapter.LoggingDebugSession {
|
||||
this.err(`can't find file: ${args.program}`);
|
||||
return false;
|
||||
}
|
||||
if(!args.program.endsWith('.js')) {
|
||||
this.err(`${args.program} is not a javascript file`);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -220,7 +224,6 @@ class TopJSDebugSession extends vscode_debugadapter.LoggingDebugSession {
|
||||
}
|
||||
if(!this.validateArgs(args)) {
|
||||
this.sendEvent(new vscode_debugadapter.TerminatedEvent());
|
||||
process.exit(1);
|
||||
} else {
|
||||
this._args = args;
|
||||
this._program = args.program;
|
||||
|
||||
Reference in New Issue
Block a user