Add a hack to ensure documents are connected to open files
In https://devdiv.visualstudio.com/DevDiv/_workitems/edit/728035, a file is opened in an invisible editor and contents are written to it. The file isn't saved, but it's added to the workspace; we won't have yet hooked up to the open file since that work was deferred. Since we're on the UI thread here, we can ensure those are all wired up since the analysis of this document may depend on that other file. We choose to do this here rather than in the project system code when it's added because we don't want to pay the penalty of checking the RDT for all files being opened on the UI thread if we really don't need it. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/728035.
想要评论请 注册 或 登录