@@ -45,7 +45,7 @@ import { renderViewTree } from 'vs/workbench/contrib/debug/browser/baseDebugView
45
45
import { CONTINUE_ID , CONTINUE_LABEL , DISCONNECT_ID , DISCONNECT_LABEL , PAUSE_ID , PAUSE_LABEL , RESTART_LABEL , RESTART_SESSION_ID , STEP_INTO_ID , STEP_INTO_LABEL , STEP_OUT_ID , STEP_OUT_LABEL , STEP_OVER_ID , STEP_OVER_LABEL , STOP_ID , STOP_LABEL } from 'vs/workbench/contrib/debug/browser/debugCommands' ;
46
46
import * as icons from 'vs/workbench/contrib/debug/browser/debugIcons' ;
47
47
import { createDisconnectMenuItemAction } from 'vs/workbench/contrib/debug/browser/debugToolBar' ;
48
- import { CALLSTACK_VIEW_ID , CONTEXT_CALLSTACK_ITEM_STOPPED , CONTEXT_CALLSTACK_ITEM_TYPE , CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD , CONTEXT_CALLSTACK_SESSION_IS_ATTACH , CONTEXT_DEBUG_STATE , CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG , CONTEXT_STACK_FRAME_SUPPORTS_RESTART , getStateLabel , IDebugModel , IDebugService , IDebugSession , IRawStoppedDetails , IStackFrame , IThread , State } from 'vs/workbench/contrib/debug/common/debug' ;
48
+ import { CALLSTACK_VIEW_ID , CONTEXT_CALLSTACK_ITEM_STOPPED , CONTEXT_CALLSTACK_ITEM_TYPE , CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD , CONTEXT_CALLSTACK_SESSION_IS_ATTACH , CONTEXT_DEBUG_STATE , CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG , CONTEXT_STACK_FRAME_SUPPORTS_RESTART , getStateLabel , IDebugModel , IDebugService , IDebugSession , IRawStoppedDetails , isFrameDeemphasized , IStackFrame , IThread , State } from 'vs/workbench/contrib/debug/common/debug' ;
49
49
import { StackFrame , Thread , ThreadAndSessionIds } from 'vs/workbench/contrib/debug/common/debugModel' ;
50
50
import { isSessionAttach } from 'vs/workbench/contrib/debug/common/debugUtils' ;
51
51
import { ICustomHover , setupCustomHover } from 'vs/base/browser/ui/hover/updatableHoverWidget' ;
@@ -744,9 +744,8 @@ class StackFramesRenderer implements ICompressibleTreeRenderer<IStackFrame, Fuzz
744
744
745
745
renderElement ( element : ITreeNode < IStackFrame , FuzzyScore > , index : number , data : IStackFrameTemplateData ) : void {
746
746
const stackFrame = element . element ;
747
- data . stackFrame . classList . toggle ( 'disabled' , ! stackFrame . source || ! stackFrame . source . available || isDeemphasized ( stackFrame ) ) ;
747
+ data . stackFrame . classList . toggle ( 'disabled' , ! stackFrame . source || ! stackFrame . source . available || isFrameDeemphasized ( stackFrame ) ) ;
748
748
data . stackFrame . classList . toggle ( 'label' , stackFrame . presentationHint === 'label' ) ;
749
- data . stackFrame . classList . toggle ( 'subtle' , stackFrame . presentationHint === 'subtle' ) ;
750
749
const hasActions = ! ! stackFrame . thread . session . capabilities . supportsRestartFrame && stackFrame . presentationHint !== 'label' && stackFrame . presentationHint !== 'subtle' && stackFrame . canRestart ;
751
750
data . stackFrame . classList . toggle ( 'has-actions' , hasActions ) ;
752
751
@@ -933,10 +932,6 @@ function isDebugSession(obj: any): obj is IDebugSession {
933
932
return obj && typeof obj . getAllThreads === 'function' ;
934
933
}
935
934
936
- function isDeemphasized ( frame : IStackFrame ) : boolean {
937
- return frame . source . presentationHint === 'deemphasize' || frame . presentationHint === 'deemphasize' ;
938
- }
939
-
940
935
class CallStackDataSource implements IAsyncDataSource < IDebugModel , CallStackItem > {
941
936
deemphasizedStackFramesToShow : IStackFrame [ ] = [ ] ;
942
937
@@ -984,7 +979,7 @@ class CallStackDataSource implements IAsyncDataSource<IDebugModel, CallStackItem
984
979
// Check if some stack frames should be hidden under a parent element since they are deemphasized
985
980
const result : CallStackItem [ ] = [ ] ;
986
981
children . forEach ( ( child , index ) => {
987
- if ( child instanceof StackFrame && child . source && isDeemphasized ( child ) ) {
982
+ if ( child instanceof StackFrame && child . source && isFrameDeemphasized ( child ) ) {
988
983
// Check if the user clicked to show the deemphasized source
989
984
if ( this . deemphasizedStackFramesToShow . indexOf ( child ) === - 1 ) {
990
985
if ( result . length ) {
@@ -997,7 +992,7 @@ class CallStackDataSource implements IAsyncDataSource<IDebugModel, CallStackItem
997
992
}
998
993
999
994
const nextChild = index < children . length - 1 ? children [ index + 1 ] : undefined ;
1000
- if ( nextChild instanceof StackFrame && nextChild . source && isDeemphasized ( nextChild ) ) {
995
+ if ( nextChild instanceof StackFrame && nextChild . source && isFrameDeemphasized ( nextChild ) ) {
1001
996
// Start collecting stackframes that will be "collapsed"
1002
997
result . push ( [ child ] ) ;
1003
998
return ;
0 commit comments