mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
27 lines
1 KiB
C#
27 lines
1 KiB
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);
|
|
private static readonly IPageMetadata CosmosPage =
|
|
new PropertyPageMetadata("Cosmos", CosmosPropertyPage.PageGuid, -50, true);
|
|
|
|
public Task<IReadOnlyCollection<IPageMetadata>> GetPagesAsync()
|
|
{
|
|
return Task.FromResult<IReadOnlyCollection<IPageMetadata>>(
|
|
ImmutableArray.Create(OldCosmosPage, CosmosPage));
|
|
}
|
|
}
|
|
}
|