protected virtual IEnumerable <global::EnvDTE.ProjectItem> GetProjectItems() { var message = new ProjectItemInformationParams { ProjectFileName = Project.FileName }; var list = JsonRpcProvider.Rpc.InvokeWithParameterObjectAsync <ProjectItemInformationList> ( Methods.ProjectItemsName, message).WaitAndGetResult(); foreach (ProjectItemInformation info in list.Items) { yield return(new ProjectItem(Project, info)); } }
IEnumerable <string> GetAnalyzerItems() { var message = new ProjectItemInformationParams { ProjectFileName = project.FileName }; var list = JsonRpcProvider.Rpc.InvokeWithParameterObjectAsync <AnalyzerInformationList> ( Methods.ProjectAnalyzerItemsName, message).WaitAndGetResult(); foreach (string fileName in list.FileNames) { yield return(fileName); } }