Skip to content

Commit

Permalink
debug: take isFrameDeemphasized presentationHint from the frame if set (
Browse files Browse the repository at this point in the history
#214632)

Refs discussion in #214433
  • Loading branch information
connor4312 authored Jun 7, 2024
1 parent 64a3d79 commit d3b66ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/debug/common/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ export interface IStackFrame extends ITreeElement {
}

export function isFrameDeemphasized(frame: IStackFrame): boolean {
return frame.source.presentationHint === 'deemphasize' || frame.presentationHint === 'deemphasize' || frame.presentationHint === 'subtle';
const hint = frame.presentationHint ?? frame.source.presentationHint;
return hint === 'deemphasize' || hint === 'subtle';
}

export interface IEnablement extends ITreeElement {
Expand Down

0 comments on commit d3b66ea

Please sign in to comment.