Ejemplo n.º 1
0
 void RefreshTextViews()
 {
     foreach (var doc in documents)
     {
         roslynDocumentChangedService.RaiseDocumentChanged(doc.TextView.TextSnapshot);
     }
 }
Ejemplo n.º 2
0
        void Workspace_WorkspaceChanged(object sender, WorkspaceChangeEventArgs e)
        {
            if (isDisposed)
            {
                return;
            }
            if (e.Kind != WorkspaceChangeKind.DocumentChanged)
            {
                return;
            }
            docChangedEventCount++;
            if (docChangedEventCount != documents.Count)
            {
                return;
            }

            workspace.WorkspaceChanged -= Workspace_WorkspaceChanged;
            foreach (var doc in documents)
            {
                roslynDocumentChangedService.RaiseDocumentChanged(doc.TextView.TextSnapshot);
            }
        }