-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInsertTagPackage.cs
29 lines (23 loc) · 992 Bytes
/
InsertTagPackage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Task = System.Threading.Tasks.Task;
namespace InsertTag
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[Guid(PackageTag.InsertTagString)]
public sealed class InsertTagPackage : ToolkitPackage
{
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
await GetTagCmd.InitializeAsync(this);
await InsertTagCmd.InitializeAsync(this);
await InsertTagCommentedCmd.InitializeAsync(this);
}
}
}