-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimplicodePackage.cs
More file actions
30 lines (27 loc) · 1.11 KB
/
simplicodePackage.cs
File metadata and controls
30 lines (27 loc) · 1.11 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
global using Community.VisualStudio.Toolkit;
global using Microsoft.VisualStudio.Shell;
global using System;
global using Task = System.Threading.Tasks.Task;
using simplicode.UI;
using System.Runtime.InteropServices;
using System.Threading;
namespace simplicode
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[ProvideOptionPage(typeof(OptionsProvider.OptionsPageOptions), "simplicode", "OptionsPage", 0, 0, true, SupportsProfiles = true)]
[ProvideToolWindow(typeof(MyToolWindowPane))] // 도구 창 등록
[Guid(PackageGuids.simplicodeString)]
public sealed class simplicodePackage : ToolkitPackage
{
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await this.RegisterCommandsAsync();
}
private void InteractWithSettings()
{
var threshold = OptionsPage.Instance.SimilarityThreshold;
}
}
}