--- a/src/Tools/VSCode/src/vscode_resources.scala Sat Dec 31 14:20:50 2016 +0100
+++ b/src/Tools/VSCode/src/vscode_resources.scala Sat Dec 31 14:27:07 2016 +0100
@@ -97,9 +97,12 @@
(uri, model) <- st.models.iterator
if changed_files(model.file)
model1 <- model.update_file
- } yield (uri, model)).toList
+ } yield (uri, model1)).toList
if (changed_models.isEmpty) (false, st)
- else (true, st.copy(models = (st.models /: changed_models)(_ + _)))
+ else (true,
+ st.copy(
+ models = (st.models /: changed_models)(_ + _),
+ pending_input = (st.pending_input /: changed_models.iterator.map(_._1))(_ + _)))
})