Skip to content

Commit 37a39ef

Browse files
committed
Forgot some namespace changes.
1 parent 353b34e commit 37a39ef

File tree

6 files changed

+34
-21
lines changed

6 files changed

+34
-21
lines changed

src/CodingWithCalvin.SuperClean/CodingWithCalvin.SuperClean.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<ProjectGuid>{123DBC9B-8955-4446-9A74-DD2B8068F7B0}</ProjectGuid>
3434
<OutputType>Library</OutputType>
3535
<AppDesignerFolder>Properties</AppDesignerFolder>
36-
<RootNamespace>CodingWithCalvin.SuperClean.Vsix</RootNamespace>
37-
<AssemblyName>CodingWithCalvin.SuperClean.Vsix</AssemblyName>
36+
<RootNamespace>CodingWithCalvin.SuperClean</RootNamespace>
37+
<AssemblyName>CodingWithCalvin.SuperClean</AssemblyName>
3838
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
3939
<GeneratePkgDefFile>true</GeneratePkgDefFile>
4040
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>

src/CodingWithCalvin.SuperClean/Commands/SuperCleanCommand.cs

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using Microsoft.VisualStudio.Shell;
88
using MessageBox = System.Windows.Forms.MessageBox;
99

10-
namespace CodingWithCalvin.SuperClean.Vsix.Commands
10+
namespace CodingWithCalvin.SuperClean.Commands
1111
{
1212
internal class SuperCleanCommand
1313
{
@@ -17,18 +17,22 @@ private SuperCleanCommand(Package package)
1717
{
1818
_package = package;
1919

20-
var commandService = (OleMenuCommandService)ServiceProvider.GetService(typeof(IMenuCommandService));
20+
var commandService = (OleMenuCommandService)
21+
ServiceProvider.GetService(typeof(IMenuCommandService));
2122

2223
if (commandService == null)
2324
{
2425
return;
2526
}
2627

27-
var menuCommandId = new CommandID(PackageGuids.CommandSetGuid, PackageIds.SuperCleanCommandId);
28+
var menuCommandId = new CommandID(
29+
PackageGuids.CommandSetGuid,
30+
PackageIds.SuperCleanCommandId
31+
);
2832
var menuItem = new MenuCommand(OpenPathWrapper, menuCommandId);
2933
commandService.AddCommand(menuItem);
3034
}
31-
35+
3236
private IServiceProvider ServiceProvider => _package;
3337

3438
public static void Initialize(Package package)
@@ -44,11 +48,13 @@ private static void OpenPathWrapper(object sender, EventArgs e)
4448
}
4549
catch (Exception ex)
4650
{
47-
MessageBox.Show($@"
51+
MessageBox.Show(
52+
$@"
4853
Fatal Error! Unable to invoke Super Clean!
4954
{Environment.NewLine}
5055
{Environment.NewLine}
51-
Exception: {ex.Message}");
56+
Exception: {ex.Message}"
57+
);
5258
}
5359
}
5460

@@ -72,15 +78,16 @@ private static async Task OpenPathAsync(object sender, EventArgs e)
7278
{
7379
throw new ApplicationException(errors);
7480
}
75-
7681
}
7782
catch (Exception ex)
7883
{
79-
MessageBox.Show($@"
84+
MessageBox.Show(
85+
$@"
8086
Unable to Super Clean solution
8187
{Environment.NewLine}
8288
{Environment.NewLine}
83-
Exception: {ex.Message}");
89+
Exception: {ex.Message}"
90+
);
8491
}
8592

8693
break;
@@ -91,11 +98,13 @@ Unable to Super Clean solution
9198
}
9299
catch (Exception ex)
93100
{
94-
MessageBox.Show($@"
101+
MessageBox.Show(
102+
$@"
95103
Unable to Super Clean project ${activeItem.Name}
96104
{Environment.NewLine}
97105
{Environment.NewLine}
98-
Exception: {ex.Message}");
106+
Exception: {ex.Message}"
107+
);
99108
}
100109

101110
break;
@@ -124,8 +133,9 @@ Unable to Super Clean project ${activeItem.Name}
124133

125134
void SuperCleanProject(SolutionItem project)
126135
{
127-
var projectPath = Path.GetDirectoryName(project.FullPath)
128-
?? throw new InvalidOperationException();
136+
var projectPath =
137+
Path.GetDirectoryName(project.FullPath)
138+
?? throw new InvalidOperationException();
129139

130140
var binPath = Path.Combine(projectPath, "bin");
131141
var objPath = Path.Combine(projectPath, "obj");

src/CodingWithCalvin.SuperClean/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
3-
using CodingWithCalvin.SuperClean.Vsix;
3+
using CodingWithCalvin.SuperClean;
44

55
[assembly: AssemblyTitle(Vsix.Name)]
66
[assembly: AssemblyDescription(Vsix.Description)]

src/CodingWithCalvin.SuperClean/SuperCleanPackage.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
using System;
22
using System.Runtime.InteropServices;
33
using System.Threading;
4-
using CodingWithCalvin.SuperClean.Vsix.Commands;
4+
using CodingWithCalvin.SuperClean.Commands;
55
using Microsoft.VisualStudio.Shell;
66
using Task = System.Threading.Tasks.Task;
77

8-
namespace CodingWithCalvin.SuperClean.Vsix
8+
namespace CodingWithCalvin.SuperClean
99
{
1010
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
1111
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
1212
[Guid(PackageGuids.PackageGuidString)]
1313
[ProvideMenuResource("Menus.ctmenu", 1)]
1414
public sealed class SuperCleanPackage : AsyncPackage
1515
{
16-
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
16+
protected override async Task InitializeAsync(
17+
CancellationToken cancellationToken,
18+
IProgress<ServiceProgressData> progress
19+
)
1720
{
1821
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
1922

src/CodingWithCalvin.SuperClean/VSCommandTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This file was generated by VSIX Synchronizer
44
// </auto-generated>
55
// ------------------------------------------------------------------------------
6-
namespace CodingWithCalvin.SuperClean.Vsix
6+
namespace CodingWithCalvin.SuperClean
77
{
88
using System;
99

src/CodingWithCalvin.SuperClean/source.extension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This file was generated by VSIX Synchronizer
44
// </auto-generated>
55
// ------------------------------------------------------------------------------
6-
namespace CodingWithCalvin.SuperClean.Vsix
6+
namespace CodingWithCalvin.SuperClean
77
{
88
internal sealed partial class Vsix
99
{

0 commit comments

Comments
 (0)