Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rschnekenbu committed Jul 23, 2024
1 parent ade6c8d commit c633d7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class DebugSession implements CompositeTreeElement {
return this._currentThread;
}
set currentThread(thread: DebugThread | undefined) {
if (this._currentThread === thread) {
if (this._currentThread?.id === thread?.id) {
return;
}
this.toDisposeOnCurrentThread.dispose();
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/src/browser/model/debug-thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class DebugThread extends DebugThreadData implements TreeElement {
return this._currentFrame;
}
set currentFrame(frame: DebugStackFrame | undefined) {
if (this._currentFrame === frame) {
if (this._currentFrame?.id === frame?.id) {
return;
}
this._currentFrame = frame;
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-ext/src/plugin/debug/debug-ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ export class DebugExtImpl implements DebugExt {
}

set activeStackItem(stackItem: theia.DebugStackFrame | theia.DebugThread | undefined) {
if (this._activeStackItem === stackItem) {
return;
}
this._activeStackItem = stackItem;
this.onDidChangeActiveStackItemEmitter.fire(this.activeStackItem);
}
Expand Down

0 comments on commit c633d7d

Please sign in to comment.