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

Commit

Permalink
Fix microsoft/vscode#21929 - show exception widget for promise rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Apr 21, 2017
1 parent 8fa3a8c commit 1761cf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chrome/stoppedEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class StoppedEvent2 extends StoppedEvent {
break;
case 'promise_rejection':
(<DebugProtocol.StoppedEvent>this).body.description = localize('reason.description.promiseRejection', "Paused on promise rejection");
this.body.reason = 'exception';
break;
default:
(<DebugProtocol.StoppedEvent>this).body.description = 'Unknown pause reason';
Expand Down

0 comments on commit 1761cf0

Please sign in to comment.