提交 b0b5d17d 编写于 作者: I isidor

debug: suport presentationHint = "subtle"

fixes #25162
上级 9b7daa87
......@@ -207,6 +207,10 @@
font-style: italic;
}
.debug-viewlet .debug-call-stack .stack-frame.subtle {
font-style: italic;
}
.debug-viewlet .debug-call-stack .stack-frame.label > .file {
display: none;
}
......
......@@ -537,8 +537,10 @@ export class CallStackRenderer implements IRenderer {
}
private renderStackFrame(stackFrame: debug.IStackFrame, data: IStackFrameTemplateData): void {
stackFrame.source.presenationHint === 'deemphasize' ? dom.addClass(data.stackFrame, 'disabled') : dom.removeClass(data.stackFrame, 'disabled');
stackFrame.source.presenationHint === 'label' ? dom.addClass(data.stackFrame, 'label') : dom.removeClass(data.stackFrame, 'label');
dom.toggleClass(data.stackFrame, 'disabled', stackFrame.source.presenationHint === 'deemphasize');
dom.toggleClass(data.stackFrame, 'label', stackFrame.source.presenationHint === 'label');
dom.toggleClass(data.stackFrame, 'subtle', stackFrame.source.presenationHint === 'subtle');
data.file.title = stackFrame.source.raw.path || stackFrame.source.name;
if (stackFrame.source.raw.origin) {
data.file.title += `\n${stackFrame.source.raw.origin}`;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册