Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 6e4dee8

Browse files
committed
Disable Debug -> Add watch expression if no text selected
1 parent cd8c6c3 commit 6e4dee8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.addin

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@
7171
label = "${res:MainWindow.Windows.Debug.AddExpressionBreakpoint}"
7272
shortcut="Shift|F7"
7373
class = "Debugger.AddIn.AddExpressionBreakpointCommand"/>-->
74-
<MenuItem id="AddWatchExpression"
75-
insertafter="AddExpressionBreakpoint"
76-
label = "${res:MainWindow.Windows.Debug.AddWatchExpression}"
77-
shortcut="Ctrl|F7"
78-
class = "Debugger.AddIn.AddWatchExpressionCommand"/>
74+
<Condition name = "IsTextSelected" action="Disable">
75+
<MenuItem id="AddWatchExpression"
76+
insertafter="AddExpressionBreakpoint"
77+
label = "${res:MainWindow.Windows.Debug.AddWatchExpression}"
78+
shortcut="Ctrl|F7"
79+
class = "Debugger.AddIn.AddWatchExpressionCommand"/>
80+
</Condition>
7981
</Path>
8082

8183
<Path name="/SharpDevelop/Pads/ClassBrowser/Toolbar">

0 commit comments

Comments
 (0)