From 22eb2811006bf347dd8675af5e0083f909d6f2c9 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 13 May 2024 19:27:14 +0200 Subject: [PATCH] Update Extension to version 1.3 --- .../VbNamespaceUpdaterService.cs | 2 +- .../Windows/InputFieldWindow.xaml.cs | 2 +- NamespaceAdjuster/source.extension.cs | 24 +++++++++++-------- .../source.extension.vsixmanifest | 8 +++++-- README.md | 1 + 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/NamespaceAdjuster/NamespaceUpdater/VbNamespaceUpdaterService.cs b/NamespaceAdjuster/NamespaceUpdater/VbNamespaceUpdaterService.cs index 194f495..0d6ff1d 100644 --- a/NamespaceAdjuster/NamespaceUpdater/VbNamespaceUpdaterService.cs +++ b/NamespaceAdjuster/NamespaceUpdater/VbNamespaceUpdaterService.cs @@ -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) => diff --git a/NamespaceAdjuster/Windows/InputFieldWindow.xaml.cs b/NamespaceAdjuster/Windows/InputFieldWindow.xaml.cs index ff6d724..24293c5 100644 --- a/NamespaceAdjuster/Windows/InputFieldWindow.xaml.cs +++ b/NamespaceAdjuster/Windows/InputFieldWindow.xaml.cs @@ -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); } diff --git a/NamespaceAdjuster/source.extension.cs b/NamespaceAdjuster/source.extension.cs index 6b17f97..f638cb8 100644 --- a/NamespaceAdjuster/source.extension.cs +++ b/NamespaceAdjuster/source.extension.cs @@ -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 = ""; + } } diff --git a/NamespaceAdjuster/source.extension.vsixmanifest b/NamespaceAdjuster/source.extension.vsixmanifest index 40511df..755a0cc 100644 --- a/NamespaceAdjuster/source.extension.vsixmanifest +++ b/NamespaceAdjuster/source.extension.vsixmanifest @@ -1,9 +1,13 @@ - + Namespace Adjuster - Select one or multiple .cs files and adjust them with the specified Namespace + Select one or multiple files and adjust them with the specified Namespace. + +Supported file extensions: +- .cs +- .vb Resources\Icon.png Resources\Icon.png diff --git a/README.md b/README.md index 6793f26..8596248 100644 --- a/README.md +++ b/README.md @@ -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