private DocumentSnapshot UpdateDocument(string filePath, SourceText sourceText) { ProjectSnapshotManager.DocumentChanged(HostProject.FilePath, filePath, sourceText); var project = ProjectSnapshotManager.GetLoadedProject(HostProject.FilePath); var document = project.GetDocument(filePath); return(document); }