Skip to content

Commit 9cb6273

Browse files
committed
debug: allow thread name to get updated
fixes microsoft#18244
1 parent 93b8a73 commit 9cb6273

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vs/workbench/parts/debug/common/debugModel.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export class Thread implements debug.IThread {
381381
}
382382

383383
public getId(): string {
384-
return `thread:${this.process.getId()}:${this.name}:${this.threadId}`;
384+
return `thread:${this.process.getId()}:${this.threadId}`;
385385
}
386386

387387
public clearCallStack(): void {
@@ -506,6 +506,9 @@ export class Process implements debug.IProcess {
506506
if (data.thread && !this.threads.has(data.threadId)) {
507507
// A new thread came in, initialize it.
508508
this.threads.set(data.threadId, new Thread(this, data.thread.name, data.thread.id));
509+
} else if (data.thread && data.thread.name) {
510+
// Just the thread name got updated #18244
511+
this.threads.get(data.threadId).name = data.thread.name;
509512
}
510513

511514
if (data.stoppedDetails) {

0 commit comments

Comments
 (0)