Skip to content

Commit 20f8033

Browse files
committed
Fix commands.
1 parent 63045fd commit 20f8033

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RetailCoder.VBE/UI/Command/MenuItems/FindSymbolCommandMenuItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public FindSymbolCommandMenuItem(ICommand command)
2222

2323
public override bool EvaluateCanExecute(RubberduckParserState state)
2424
{
25-
return state.Status >= ParserState.ResolvedDeclarations;
25+
return state.Status >= ParserState.ResolvedDeclarations && state.Status < ParserState.Error;
2626
}
2727
}
2828
}

RetailCoder.VBE/UI/Command/MenuItems/RunAllTestsCommandMenuItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public RunAllTestsCommandMenuItem(ICommand command)
2020

2121
public override bool EvaluateCanExecute(RubberduckParserState state)
2222
{
23-
return state.Status >= ParserState.ResolvedDeclarations;
23+
return state.Status >= ParserState.ResolvedDeclarations && state.Status < ParserState.Error;
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)