Skip to content

Commit

Permalink
V5.2.0 2023/05/25
Browse files Browse the repository at this point in the history
- Added tag [debuggedProcesses].
- Removed support for VS 2019.
  • Loading branch information
mayerwin committed May 25, 2023
1 parent 643d3c2 commit 0a43510
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 258 deletions.
19 changes: 4 additions & 15 deletions CustomizeVSWindowTitle.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomizeVSWindowTitle", "CustomizeVSWindowTitle\CustomizeVSWindowTitle.csproj", "{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CustomizeVSWindowTitleShared", "CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.shproj", "{BBB5B91B-E909-4F08-B623-9F27377EE7DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomizeVSWindowTitle2022", "CustomizeVSWindowTitle2022\CustomizeVSWindowTitle2022.csproj", "{BF533FE9-559F-4AC7-8506-81F7883F1AA9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CustomizeVSWindowTitleSharedResources", "CustomizeVSWindowTitleSharedResources\CustomizeVSWindowTitleSharedResources.csproj", "{A923831E-ED5C-4DBA-85C6-DEF2DB9D23C0}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.projitems*{bbb5b91b-e909-4f08-b623-9f27377ee7dc}*SharedItemsImports = 13
CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.projitems*{bf533fe9-559f-4ac7-8506-81f7883f1aa9}*SharedItemsImports = 4
CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.projitems*{ea0e0d3b-0669-4422-9e9a-c53284ddea44}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Debug|x86.ActiveCfg = Debug|x86
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Debug|x86.Build.0 = Debug|x86
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Release|Any CPU.Build.0 = Release|Any CPU
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Release|x86.ActiveCfg = Release|x86
{EA0E0D3B-0669-4422-9E9A-C53284DDEA44}.Release|x86.Build.0 = Release|x86
{BF533FE9-559F-4AC7-8506-81F7883F1AA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF533FE9-559F-4AC7-8506-81F7883F1AA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF533FE9-559F-4AC7-8506-81F7883F1AA9}.Debug|x86.ActiveCfg = Debug|x86
Expand All @@ -55,4 +40,8 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5A40B2FE-FE61-4A0F-88F7-D9D978B2D9EE}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.projitems*{bbb5b91b-e909-4f08-b623-9f27377ee7dc}*SharedItemsImports = 13
CustomizeVSWindowTitleShared\CustomizeVSWindowTitleShared.projitems*{bf533fe9-559f-4ac7-8506-81f7883f1aa9}*SharedItemsImports = 4
EndGlobalSection
EndGlobal
176 changes: 0 additions & 176 deletions CustomizeVSWindowTitle/CustomizeVSWindowTitle.csproj

This file was deleted.

33 changes: 0 additions & 33 deletions CustomizeVSWindowTitle/Properties/AssemblyInfo.cs

This file was deleted.

30 changes: 0 additions & 30 deletions CustomizeVSWindowTitle/source.extension.vsixmanifest

This file was deleted.

2 changes: 1 addition & 1 deletion CustomizeVSWindowTitle2022/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="5126c493-138a-46d7-a04d-ad772f6be159" Version="5.1.0" Language="en-US" Publisher="Erwin Mayer" />
<Identity Id="5126c493-138a-46d7-a04d-ad772f6be159" Version="5.2.0" Language="en-US" Publisher="Erwin Mayer" />
<DisplayName>Customize Visual Studio Window Title</DisplayName>
<Description xml:space="preserve">This lightweight extension allows changing the window title of Visual Studio to include a folder tree with a configurable min depth and max depth distance from the solution/project file, and the use of special tags to help with many other possible scenarios (Git, Hg, TFS, SVN...).
Solution-specific overriding rules are available as well to cover virtually any possible renaming needs. It can also be configured so that the rules apply only when at least two instances of Visual Studio are running with the same window title.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public CustomizeVSWindowTitle() {
new WorkspaceOwnerNameResolver(),
new VsProcessIdResolver(),
new EnvResolver(),
new DebuggedProcessesArgsResolver(),
new DebuggedProcessesArgsResolver("debuggedProcesses"),
new DebuggedProcessesArgsResolver("debuggedProcessesArgs"),
new TfsBranchNameResolver()
};
this.SupportedTags = this.TagResolvers.SelectMany(r => r.TagNames).ToArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

namespace ErwinMayerLabs.RenameVSWindowTitle.Resolvers {
public class DebuggedProcessesArgsResolver : SimpleTagResolver {
public DebuggedProcessesArgsResolver() : base(tagName: "debuggedProcessesArgs") { }
/// <summary>
///
/// </summary>
/// <param name="tagName">"debuggedProcesses", to always show the process name and arguments, and "debuggedProcessesArgs", to show the process name only if there are more than one process, are supported.</param>
public DebuggedProcessesArgsResolver(string tagName = "debuggedProcesses") : base(tagName: tagName) {
if (tagName != "debuggedProcesses" && tagName != "debuggedProcessesArgs") throw new ArgumentOutOfRangeException(nameof(tagName));
}

public override string Resolve(AvailableInfo info) {
var list = new List<Tuple<string, string>>();
Expand All @@ -18,7 +24,7 @@ public override string Resolve(AvailableInfo info) {
}
}
if (!list.Any()) return "";
if (list.Count == 1) {
if (this.TagName == "debuggedProcessesArgs" && list.Count == 1) {
return list.Single().Item2;
}
return string.Join(" & ", list.Select(e => Path.GetFileName(e.Item1) + " " + e.Item2));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
</data>
<data name="tag_configurationName" xml:space="preserve">
<value>Current configuration name (e.g. Release).</value>
</data>
<data name="tag_debuggedProcesses" xml:space="preserve">
<value>Currently debugged processes names and arguments.</value>
</data>
<data name="tag_debuggedProcessesArgs" xml:space="preserve">
<value>Arguments of the processes currently debugged (including the executable file name before each set of arguments if more than 1 process).</value>
Expand Down

0 comments on commit 0a43510

Please sign in to comment.