public ProjectItemDetailsType(ProjectItem item)
            {
                FilePath    = item.ToFullPathPropertyValue();
                ProjectItem = item;

                Microsoft.VisualStudio.Shell.ThreadHelper.JoinableTaskFactory
                .Run(async delegate
                {
                    InitialSourceNode = ProjectItemDocument != null ? await ProjectItemDocument.GetSyntaxRootAsync() : item.ToSyntaxNode();
                });
            }
 public ProjectItemDetailsType(ProjectItem item)
 {
     FilePath          = item.ToFullPathPropertyValue();
     ProjectItem       = item;
     InitialSourceNode = ProjectItemDocument != null?ProjectItemDocument.GetSyntaxRootAsync().Result : item.ToSyntaxNode();
 }