Skip to content

Commit

Permalink
PhysicalFile_guid
Browse files Browse the repository at this point in the history
na1307 committed Apr 26, 2024
1 parent d059207 commit 3e7a006
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -18,6 +18,11 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) {
var dte = (await Package.GetServiceAsync(typeof(DTE)) as DTE) ?? throw new InvalidOperationException();
var items = dte.SelectedItems.Item(1).Project.ProjectItems.Cast<ProjectItem>().Where(item => {
ThreadHelper.ThrowIfNotOnUIThread();

if (!item.Kind.Equals("{6bb5f8ee-4483-11d3-8bcf-00c04f8ec28c}", StringComparison.OrdinalIgnoreCase)) {
return false;
}

item.Open();
return item.Document.Kind == Constants.vsDocumentKindText;
}).Select(item => {
2 changes: 1 addition & 1 deletion EncodingConverter.VisualStudio/source.extension.cs
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ internal sealed partial class Vsix
public const string Name = "Encoding Converter";
public const string Description = @"An extension that allows you to easily convert the encoding of multiple files(System Encoding / UTF-8 with / without BOM).";
public const string Language = "en-US";
public const string Version = "1.2";
public const string Version = "1.2.1";
public const string Author = "Bluehill";
public const string Tags = "encoding, converter, unicode, utf-8, utf8";
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="EncodingConverter.625f3018-1e5f-4b92-ad9c-08d2534b6021" Version="1.2" Language="en-US" Publisher="Bluehill" />
<Identity Id="EncodingConverter.625f3018-1e5f-4b92-ad9c-08d2534b6021" Version="1.2.1" Language="en-US" Publisher="Bluehill" />
<DisplayName>Encoding Converter</DisplayName>
<Description xml:space="preserve">An extension that allows you to easily convert the encoding of multiple files(System Encoding / UTF-8 with / without BOM).</Description>
<License>..\LICENSE.txt</License>

0 comments on commit 3e7a006

Please sign in to comment.