-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodexPackage.cs
More file actions
22 lines (21 loc) · 902 Bytes
/
Copy pathCodexPackage.cs
File metadata and controls
22 lines (21 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.Shell;
namespace CodexVs {
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration("Codex for Visual Studio (Unofficial)",
"OpenAI Codex integration", "0.1.0")]
[ProvideMenuResource("Menus.ctmenu", 1)]
[ProvideToolWindow(typeof(CodexToolWindow))]
[Guid("9d29a75f-8049-4c96-beb9-fdc8cbb4c2fc")]
public sealed class CodexPackage : AsyncPackage {
protected override async Task InitializeAsync(
CancellationToken cancellationToken, IProgress<ServiceProgressData> progress) {
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
await Commands.OpenCodexCommand.InitializeAsync(this);
await Commands.AddToChatCommand.InitializeAsync(this);
}
}
}