Skip to content

Commit

Permalink
v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
heku committed Sep 24, 2019
1 parent 0c945ce commit dbf125a
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Kool.EditProject/Commands/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ private void OnProjectFileChanged(object sender, FileSystemEventArgs e)
{
var projectFile = e.FullPath;
var document = FindDocument(projectFile);
if (document == null) return;
if (document == null)
{
return;
}
var editingFile = document.FullName;
var watcher = EditingFileMap[editingFile];

Expand Down
1 change: 1 addition & 0 deletions Kool.EditProject/Kool.EditProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<Compile Include="Commands\EditProjectsCommand.cs" />
<Compile Include="Commands\EditSolutionCommand.cs" />
<Compile Include="EditProjectPackage.cs" />
<Compile Include="Properties\GlobalSuppressions.cs" />
<Compile Include="Ids.cs" />
<Compile Include="Models\ProjectHelper.cs" />
<Compile Include="Models\ProjectKinds.cs" />
Expand Down
16 changes: 16 additions & 0 deletions Kool.EditProject/Properties/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.DocumentEvents_DocumentSaved(EnvDTE.Document)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.ActiveDocument(System.String)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.DocumentEvents_DocumentClosing(EnvDTE.Document)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.FindDocument(System.String)~EnvDTE.Document")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.OnProjectFileChanged(System.Object,System.IO.FileSystemEventArgs)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.BaseCommand.RegisterListeners")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~P:Kool.EditProject.Commands.BaseCommand.SelectedProjects")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.EditProjectCommand.OnBeforeQueryStatus")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "VSTHRD010:Invoke single-threaded types on Main thread", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.EditProjectsCommand.OnExecute")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Build", "VSTHRD010:Accessing \"_Solution\" should only be done on the main thread. Call Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread() first.", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Commands.EditSolutionCommand.OnBeforeQueryStatus")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Build", "VSTHRD010:Accessing \"Project\" should only be done on the main thread. Call Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread() first.", Justification = "<Pending>", Scope = "member", Target = "~M:Kool.EditProject.Models.ProjectHelper.IsDotNetCoreProject(EnvDTE.Project)~System.Boolean")]
2 changes: 1 addition & 1 deletion Kool.EditProject/VSPackage.en.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>Edit Project</value>
</data>
<data name="112" xml:space="preserve">
<value>An open sourced Visual Studio extension to add a context menu for editing project file.</value>
<value>An open source Visual Studio extension to add the context menu for editing project/solution file.</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
Expand Down
2 changes: 1 addition & 1 deletion Kool.EditProject/VSPackage.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>Edit Project</value>
</data>
<data name="112" xml:space="preserve">
<value>一个开源的 Visual Studio 拓展,在项目右键菜单中加入“编辑项目文件”的功能。</value>
<value>一个开源的 Visual Studio 拓展,在右键菜单中加入“编辑项目/解决方案文件”的功能。</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
Expand Down
2 changes: 1 addition & 1 deletion Kool.EditProject/Vsix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
internal static class Vsix
{
public const string VERSION = "1.4";
public const string VERSION = "1.5";
public const string PRODUCT = "Kool";
public const string PACKAGE = "Edit Project";
public const string URL = "https://github.com/heku/kool.editproject";
Expand Down
2 changes: 1 addition & 1 deletion Kool.EditProject/source.extension.vsixmanifest
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="Kool.EditProject.51be3f7e-0e8b-4ad4-b2c9-126445f2ce6a" Version="1.4" Language="en-US" Publisher="Heku" />
<Identity Id="Kool.EditProject.51be3f7e-0e8b-4ad4-b2c9-126445f2ce6a" Version="1.5" Language="en-US" Publisher="Heku" />
<DisplayName>Edit Project</DisplayName>
<Description xml:space="preserve">An open source Visual Studio extension to add the context menu for editing project/solution file.</Description>
<MoreInfo>https://github.com/heku/kool.editproject</MoreInfo>
Expand Down
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

An open source Visual Studio extension to add the context menu for editing project/solution file.

You can download it via Visual Studio 2015/2017/2019 'Extensions and Updates' or [Marketplace](https://marketplace.visualstudio.com/items?itemName=iheku.EditProject).
You can download it via Visual Studio 2015/2017/2019 'Extensions and Updates' or [Marketplace](https://marketplace.visualstudio.com/items?itemName=heku.EditProject).


## Features
Expand All @@ -19,6 +19,7 @@ You can download it via Visual Studio 2015/2017/2019 'Extensions and Updates' or
- Add **Edit Selected Projects** menu for multiple selected projects.

![Edit Multiple Projects Screenshot](Screenshots/MultipleProjects.png)

## A known 'issue'
Because the **Edit Selected Projects** menu works for all kinds of projects, include .NETCore projects which have the VS built-in Edit Project menu.
If you edit a .NETCore project via this menu then edit it via the VS built-in menu (vice versa), then two edit windows will be opened.
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.4.{build}
version: 1.5.{build}

branches:
only:
Expand Down

0 comments on commit dbf125a

Please sign in to comment.