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
is not async itself and returns the promise immediately without awaiting it. Consequently, if the promise gets rejected with an error, the stack trace in the error does not include either send or its caller. This unnecessarily complicates debugging of e.g. async unit tests that await send() and receive an unexpected error response.
Instead, the callback for doSend should capture the raw response in a wrapper promise, and then send should await that promise and translate it to a throw.
The text was updated successfully, but these errors were encountered:
The following implementation:
vscode-debugadapter-node/testSupport/src/protocolClient.ts
Lines 69 to 80 in 1621133
is not async itself and returns the promise immediately without awaiting it. Consequently, if the promise gets rejected with an error, the stack trace in the error does not include either
send
or its caller. This unnecessarily complicates debugging of e.g. async unit tests thatawait send()
and receive an unexpected error response.Instead, the callback for
doSend
should capture the raw response in a wrapper promise, and thensend
should await that promise and translate it to athrow
.The text was updated successfully, but these errors were encountered: