You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
I'm debugging an extension. I have the following (JS file):
let myFunction = () => {
return new Promise((resolve, reject)=> {
if (someArray.length === 0) {
vscode.window.showInformationMessage('There was a problem');
reject("There was a problem"); // <-- Debugger is pausing on this line, but not showing an Exception
} else {
// .... do some other stuff
resolve("Success!!");
}
});
}
let myCommand = () => {
myFunction()
.then((value) => {
console.log(value);
}).reject((err)=> {
console.error(err);
});
}
So with the above code, when I attempt to reject a value in that Promise, the debugger always pauses there saying there is an exception. But I don't see any actual exception specified anywhere in the debug sidebar or debug console. Is there something about the debugger that I'm not understand. And I have no clue why the reject command is pausing. If I continue the debugging, the command finishes as expected without error. So I don't understand that either.
The text was updated successfully, but these errors were encountered:
I'm debugging an extension. I have the following (JS file):
So with the above code, when I attempt to reject a value in that Promise, the debugger always pauses there saying there is an exception. But I don't see any actual exception specified anywhere in the debug sidebar or debug console. Is there something about the debugger that I'm not understand. And I have no clue why the reject command is pausing. If I continue the debugging, the command finishes as expected without error. So I don't understand that either.
The text was updated successfully, but these errors were encountered: