mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
debug: take isFrameDeemphasized presentationHint from the frame if set (#214632)
Refs discussion in #214433
This commit is contained in:
parent
64a3d795cb
commit
d3b66eafed
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue