Skip to content

Commit

Permalink
Update Extension to version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBatlle committed May 13, 2024
1 parent 5eb5977 commit 22eb281
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class VbNamespaceUpdaterService : LogicFileNamespaceUpdaterService

protected override string NamespaceEndLimiter => "End Namespace";

protected override Match FindNamespaceMatch(string fileContent) =>
protected override Match FindNamespaceMatch(string fileContent) =>
Regex.Match(fileContent, @"[\r\n|\r|\n]?Namespace\s(.+)");

protected override MatchCollection FindUsingMatches(string fileContent) =>
Expand Down
2 changes: 1 addition & 1 deletion NamespaceAdjuster/Windows/InputFieldWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private void RenameFiles(string desiredNamespace)
{
namespaceAdjuster.FixNamespace(desiredNamespace, filePath);
}
catch(Exception e)
catch (Exception e)
{
MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
Expand Down
24 changes: 14 additions & 10 deletions NamespaceAdjuster/source.extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
// ------------------------------------------------------------------------------
namespace NamespaceAdjuster
{
internal sealed partial class Vsix
{
public const string Id = "NamespaceAdjuster.897e9043-7d4c-48ac-a147-97f2dcb2be9f";
public const string Name = "Namespace Adjuster";
public const string Description = @"Select one or multiple .cs files and adjust them with the specified Namespace";
public const string Language = "en-US";
public const string Version = "1.2";
public const string Author = "Eric Batlle Clavero";
public const string Tags = "";
}
internal sealed partial class Vsix
{
public const string Id = "NamespaceAdjuster.897e9043-7d4c-48ac-a147-97f2dcb2be9f";
public const string Name = "Namespace Adjuster";
public const string Description = @"Select one or multiple files and adjust them with the specified Namespace.
Supported file extensions:
- .cs
- .vb";
public const string Language = "en-US";
public const string Version = "1.3.0";
public const string Author = "Eric Batlle Clavero";
public const string Tags = "";
}
}
8 changes: 6 additions & 2 deletions NamespaceAdjuster/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="NamespaceAdjuster.897e9043-7d4c-48ac-a147-97f2dcb2be9f" Version="1.2" Language="en-US" Publisher="Eric Batlle Clavero" />
<Identity Id="NamespaceAdjuster.897e9043-7d4c-48ac-a147-97f2dcb2be9f" Version="1.3.0" Language="en-US" Publisher="Eric Batlle Clavero" />
<DisplayName>Namespace Adjuster</DisplayName>
<Description xml:space="preserve">Select one or multiple .cs files and adjust them with the specified Namespace</Description>
<Description xml:space="preserve">Select one or multiple files and adjust them with the specified Namespace.

Supported file extensions:
- .cs
- .vb</Description>
<Icon>Resources\Icon.png</Icon>
<PreviewImage>Resources\Icon.png</PreviewImage>
</Metadata>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ But if you just want to donate straightforward, I also have [PayPal.me](https://
## Supported file extensions

- .cs
- .vb

## Contribute and add support for more file extensions

Expand Down

0 comments on commit 22eb281

Please sign in to comment.