summaryrefslogtreecommitdiff
path: root/Util/VS2010
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2012-08-27 17:41:34 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2012-08-27 17:41:34 -0700
commit9d54fd27cd67bf7ae9a99b7a8d4c2b397f873ba9 (patch)
treeb61f4c3c57edc80c6878e40d5eb6b8d825ed18da /Util/VS2010
parent56378ceecc1e7372f69c76c648f5e6a3b2afe13b (diff)
DafnyExtension: don't reverify a buffer with no changes
Diffstat (limited to 'Util/VS2010')
-rw-r--r--Util/VS2010/DafnyExtension/DafnyExtension/ProgressMargin.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Util/VS2010/DafnyExtension/DafnyExtension/ProgressMargin.cs b/Util/VS2010/DafnyExtension/DafnyExtension/ProgressMargin.cs
index 33f00ab2..286047ec 100644
--- a/Util/VS2010/DafnyExtension/DafnyExtension/ProgressMargin.cs
+++ b/Util/VS2010/DafnyExtension/DafnyExtension/ProgressMargin.cs
@@ -157,7 +157,10 @@ namespace DafnyLanguage
// We have a successfully resolved program to verify
var resolvedVersion = snap.Version.VersionNumber;
- if (!bufferChangesPostVerificationStart.TrueForAll(span => span.Snapshot.Version.VersionNumber <= resolvedVersion)) {
+ if (bufferChangesPostVerificationStart.Count == 0) {
+ // Nothing new to verify. No reason to start a new verification.
+ return;
+ } else if (!bufferChangesPostVerificationStart.TrueForAll(span => span.Snapshot.Version.VersionNumber <= resolvedVersion)) {
// There have been buffer changes since the program that was resolved. Do nothing here,
// and instead just await the next resolved program.
return;