Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Apr 25, 2017
1 parent 207f718 commit 22ac3e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/node/nodeDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ interface LaunchRequestArguments extends DebugProtocol.LaunchRequestArguments, C
externalConsole?: boolean;
/** Where to launch the debug target. */
console?: ConsoleType;

/** internal */
__restart?; boolean;
}

/**
Expand Down Expand Up @@ -808,6 +811,11 @@ export class NodeDebugSession extends LoggingDebugSession {
return;
}

if (typeof args.__restart === 'boolean' && args.__restart && typeof args.port === 'number') {
this._attach(response, args.port, undefined, args.timeout);
return;
}

this._noDebug = (typeof args.noDebug === 'boolean') && args.noDebug;

if (typeof args.console === 'string') {
Expand Down

0 comments on commit 22ac3e5

Please sign in to comment.