提交 70b3e620 编写于 作者: M Manish Vasani

Address PR feedback and add an explanatory comment

上级 38310376
......@@ -354,7 +354,10 @@ private void StartPushingToWorkspaceAndNotifyOfOpenDocuments_Foreground(IEnumera
{
AssertIsForeground();
// Filter out the projects that have been removed from the tracker.
// StartPushingToWorkspaceAndNotifyOfOpenDocuments might be invoked from a background thread,
// and hence StartPushingToWorkspaceAndNotifyOfOpenDocuments_Foreground scheduled to be executed later on the foreground task scheduler.
// By the time it gets scheduled, we might have removed some project(s) from the tracker on the UI thread.
// So, we filter out the projects that have been removed from the tracker.
projects = projects.Where(p => this.ContainsProject(p));
using (Dispatcher.CurrentDispatcher.DisableProcessing())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册