Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit c6e5c79

Browse files
committed
Fix errors
1 parent cb7b981 commit c6e5c79

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

vscode-tcf-debug/src/debugProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ export class TCFDebugSession extends LifetimeDebugSession {
449449
//single context hit, find the corresponding threadId
450450
const context = contexts.values().next().value;
451451

452+
if (!context) {
453+
this.console.log(`No valid context found for breakpoint ${breakpointID}. Ignoring`);
454+
return;
455+
}
456+
452457
void (this.verifyInlinedBreakpoint(context, breakpointTcfId)); //TODO: Should this be await-ed instead of ignored with the void operator?
453458

454459
//NOTE: *If* we don't know the thread ID, it may be a new thread or we have never had a threadsRequest.

vscode-tcf-debug/src/tcfclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export abstract class TCFClient extends AbstractTCFClient {
239239
* @returns a list of buffers with the first 'error' buffer empty.
240240
*/
241241
private static noError(buffers: Buffer[]): Buffer[] {
242-
return [EMPTY_BUFFER].concat(buffers);
242+
return [EMPTY_BUFFER, ...buffers];
243243
}
244244

245245
//see https://download.eclipse.org/tools/tcf/tcf-docs/TCF%20Service%20-%20Run%20Control.html#Events

0 commit comments

Comments
 (0)