forked from jeffdapaz/VisualChatGPTStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVisuallChatGPTStudioPackage.cs
More file actions
57 lines (54 loc) · 2.22 KB
/
VisuallChatGPTStudioPackage.cs
File metadata and controls
57 lines (54 loc) · 2.22 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using Community.VisualStudio.Toolkit;
using JeffPires.VisualChatGPTStudio.Commands;
using JeffPires.VisualChatGPTStudio.Options;
using JeffPires.VisualChatGPTStudio.ToolWindows;
using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace JeffPires.VisualChatGPTStudio
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[Guid(PackageGuids.VisuallChatGPTStudioString)]
[ProvideOptionPage(typeof(OptionPageGridGeneral), "Visual chatGPT Studio", "General", 0, 0, true)]
[ProvideProfile(typeof(OptionPageGridGeneral), "Visual chatGPT Studio", "General", 0, 0, true)]
[ProvideOptionPage(typeof(OptionPageGridCommands), "Visual chatGPT Studio", "Commands", 1, 1, true)]
[ProvideProfile(typeof(OptionPageGridCommands), "Visual chatGPT Studio", "Commands", 1, 1, true)]
[ProvideToolWindow(typeof(TerminalWindow))]
[ProvideToolWindow(typeof(TerminalWindowTurbo))]
public sealed class VisuallChatGPTStudioPackage : ToolkitPackage
{
/// <summary>
/// Gets the OptionPageGridGeneral object.
/// </summary>
public OptionPageGridGeneral OptionsGeneral
{
get
{
return (OptionPageGridGeneral)GetDialogPage(typeof(OptionPageGridGeneral));
}
}
/// <summary>
/// Gets the OptionPageGridCommands object.
/// </summary>
public OptionPageGridCommands OptionsCommands
{
get
{
return (OptionPageGridCommands)GetDialogPage(typeof(OptionPageGridCommands));
}
}
/// <summary>
/// Initializes the terminal window commands.
/// </summary>
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await this.RegisterCommandsAsync();
await TerminalWindowCommand.InitializeAsync(this);
await TerminalWindowTurboCommand.InitializeAsync(this);
}
}
}