We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2073155 commit 94abffcCopy full SHA for 94abffc
Rubberduck.Core/UI/Command/ReparseCommand.cs
@@ -46,6 +46,14 @@ protected override bool EvaluateCanExecute(object parameter)
46
47
protected override void OnExecute(object parameter)
48
{
49
+ // WPF binds to EvaluateCanExecute asychronously, which means that in some instances the bound refresh control will
50
+ // enable itself based on a "stale" ParserState. There's no easy way to test for race conditions inside WPF, so we
51
+ // need to make this test again...
52
+ if (!EvaluateCanExecute(parameter))
53
+ {
54
+ return;
55
+ }
56
+
57
if (_settings.CompileBeforeParse)
58
59
if (!VerifyCompileOnDemand())
0 commit comments