mayerwin / vs-customize-window-title

Customize Visual Studio Window Title - Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=mayerwin.RenameVisualStudioWindowTitle
MIT License
108 stars 30 forks source link

Added subversion directory resolver #22

Closed andersforsgren closed 6 years ago

andersforsgren commented 6 years ago

Svn directory resolver similar to the git/hg branch resolver. I'm calling it "directory" because it is just a folder in the remote repo where the sln file is, not an explicit branch name as in the case of git. It will usually be e.g. /trunk/Source/MyProject or similar.

There are now 3 very similar resolvers for git/svn/hg so should probably be a shared base class for resolvers that execute a command line tool and return a string. I opted against doing that refactoring in this PR.

Hope you don't mind I added the "standard" properties for vsix debugging to the .csproj. Makes it more contributor friendly becasuse you can clone the repo and debug the vsix directly (Without the props in csproj, each developer has to set the same in the csproj properties because it's only stored in the .csproj.user file).

mayerwin commented 6 years ago

Thank you for the contribution. I have just released it as version 3.7.0.

mayerwin commented 6 years ago

Please note the tag name has changed from [svnDirectory] to [svnDirectoryName] for consistency. Not sure if this shouldn't be [svnBranchName] (I am not familiar with SVN terminology). I don't believe it would be very useful at this stage to refactor the git/svn/hg resolvers as there likely won't be any other and the classes are very simple.