Cosmos/source/Cosmos.VS.ProjectSystem/ProjectSystem/VS/PropertyPages/ProjectDesignerPageProvider.cs
2018-02-17 18:01:54 +00:00

24 lines
901 B
C#

using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using Microsoft.VisualStudio.ProjectSystem;
using Microsoft.VisualStudio.ProjectSystem.VS.Properties;
using VSPropertyPages;
namespace Cosmos.VS.ProjectSystem.VS.PropertyPages
{
[Export(typeof(IVsProjectDesignerPageProvider))]
[AppliesTo(ProjectCapability.CosmosAndAppDesigner)]
internal class ProjectDesignerPageProvider : IVsProjectDesignerPageProvider
{
private static readonly IPageMetadata OldCosmosPage =
new PropertyPageMetadata("Cosmos", OldCosmosPropertyPage.PageGuid, -100, false);
public Task<IReadOnlyCollection<IPageMetadata>> GetPagesAsync()
{
return Task.FromResult<IReadOnlyCollection<IPageMetadata>>(
ImmutableArray.Create(OldCosmosPage));
}
}
}