-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlcLLMPackage.cs
More file actions
31 lines (29 loc) · 1.16 KB
/
lcLLMPackage.cs
File metadata and controls
31 lines (29 loc) · 1.16 KB
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
30
31
global using Community.VisualStudio.Toolkit;
global using Microsoft.VisualStudio.Shell;
global using System;
global using Task = System.Threading.Tasks.Task;
using lcLLM.Windows;
using System.Runtime.InteropServices;
using System.Threading;
namespace lcLLM
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[Guid(PackageGuids.guidlcLLMPackageString)]
[ProvideOptionPage(typeof(GeneralOptions), "lcLLM", "Configuration", 0, 0, true)]
[ProvideOptionPage(typeof(ModelsOptions), "lcLLM", "Models", 0, 0, true)]
[ProvideToolWindow(typeof(RefactorSuggestionWindow))]
[ProvideToolWindow(typeof(MarkdownViewerWindow))]
public sealed class lcLLMPackage : ToolkitPackage
{
public static lcLLMPackage Instance { get; private set; }
protected override async Task InitializeAsync(
CancellationToken cancellationToken,
IProgress<ServiceProgressData> progress)
{
Instance = this;
await this.RegisterCommandsAsync();
}
}
}