You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug: fix variables view does not show custom hover (microsoft#209058)
* debug: fix variables view does not show custom hover
Fixesmicrosoft#208429
Also adds easy access to copy expression/evaluateName since a user is
likely to do that after looking at the value (which is often incomplete
or summarized in the variables view)

cc @amunger if you want to adopt this for notebook variables: extra
commands can be added in the hover by passing an object into `hover`.
Note: the hover is too persistent right now due to microsoft#209057
* fix formatting
* use action bar instead
registerDebugViewMenuItem(MenuId.DebugVariablesContext,COPY_EVALUATE_PATH_ID,nls.localize('copyAsExpression',"Copy as Expression"),20,CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT,undefined,'5_cutcopypaste');
179
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext,ADD_TO_WATCH_ID,nls.localize('addToWatchExpressions',"Add to Watch"),100,CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT,undefined,'z_commands');
registerDebugViewMenuItem(MenuId.DebugVariablesContext,BREAK_WHEN_VALUE_IS_READ_ID,nls.localize('breakWhenValueIsRead',"Break on Value Read"),200,CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED,undefined,'z_commands');
181
181
registerDebugViewMenuItem(MenuId.DebugVariablesContext,BREAK_WHEN_VALUE_CHANGES_ID,nls.localize('breakWhenValueChanges',"Break on Value Change"),210,CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED,undefined,'z_commands');
182
182
registerDebugViewMenuItem(MenuId.DebugVariablesContext,BREAK_WHEN_VALUE_IS_ACCESSED_ID,nls.localize('breakWhenValueIsAccessed',"Break on Value Access"),220,CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED,undefined,'z_commands');
registerDebugViewMenuItem(MenuId.DebugHoverContext,COPY_EVALUATE_PATH_ID,nls.localize('copyAsExpression',"Copy as Expression"),20,CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT,undefined,'5_cutcopypaste');
187
-
registerDebugViewMenuItem(MenuId.DebugHoverContext,ADD_TO_WATCH_ID,nls.localize('addToWatchExpressions',"Add to Watch"),100,CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT,undefined,'z_commands');
registerDebugViewMenuItem(MenuId.DebugHoverContext,BREAK_WHEN_VALUE_IS_READ_ID,nls.localize('breakWhenValueIsRead',"Break on Value Read"),200,CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED,undefined,'z_commands');
189
189
registerDebugViewMenuItem(MenuId.DebugHoverContext,BREAK_WHEN_VALUE_CHANGES_ID,nls.localize('breakWhenValueChanges',"Break on Value Change"),210,CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED,undefined,'z_commands');
190
190
registerDebugViewMenuItem(MenuId.DebugHoverContext,BREAK_WHEN_VALUE_IS_ACCESSED_ID,nls.localize('breakWhenValueIsAccessed',"Break on Value Access"),220,CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED,undefined,'z_commands');
0 commit comments