Skip to content

Commit 814a790

Browse files
committed
refactor: update command structure and remove generated files
1 parent 4beae7b commit 814a790

File tree

6 files changed

+13
-60
lines changed

6 files changed

+13
-60
lines changed

src/CodingWithCalvin.SuperClean.slnx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@
44
<Configuration Name="Release" />
55
<Platform Name="AnyCPU" />
66
</Configurations>
7-
<Folder Name="/Solution Items/">
8-
<File Path="../.github/workflows/publish.yml" />
9-
<File Path="../.github/workflows/release_build_and_deploy.yml" />
10-
<File Path="../README.md" />
11-
<File Path="../resources/extension.manifest.json" />
12-
</Folder>
137
<Project Path="CodingWithCalvin.SuperClean/CodingWithCalvin.SuperClean.csproj" />
148
</Solution>

src/CodingWithCalvin.SuperClean/Commands/SuperCleanCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ private SuperCleanCommand(Package package)
2828
}
2929

3030
var menuCommandId = new CommandID(
31-
PackageGuids.CommandSetGuid,
32-
PackageIds.SuperCleanCommandId
31+
VSCommandTableVsct.CommandSetGuid.Guid,
32+
VSCommandTableVsct.CommandSetGuid.SuperCleanCommandId
3333
);
3434
var menuItem = new MenuCommand(OpenPathWrapper, menuCommandId);
3535
commandService.AddCommand(menuItem);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"profiles": {
3+
"Debug Extension": {
4+
"commandName": "Executable",
5+
"executablePath": "C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\IDE\\devenv.exe",
6+
"commandLineArgs": "/rootSuffix Exp"
7+
}
8+
}
9+
}

src/CodingWithCalvin.SuperClean/SuperCleanPackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
namespace CodingWithCalvin.SuperClean
1010
{
1111
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
12-
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
13-
[Guid(PackageGuids.PackageGuidString)]
12+
[InstalledProductRegistration(VsixInfo.DisplayName, VsixInfo.Description, VsixInfo.Version)]
13+
[Guid(VSCommandTableVsct.PackageGuidString)]
1414
[ProvideMenuResource("Menus.ctmenu", 1)]
1515
public sealed class SuperCleanPackage : AsyncPackage
1616
{

src/CodingWithCalvin.SuperClean/VSCommandTable.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/CodingWithCalvin.SuperClean/source.extension.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)