From c3b7d8c686f6a5b7edaebe90396819a35dc35944 Mon Sep 17 00:00:00 2001 From: Greg Trevellick Date: Mon, 21 Aug 2017 22:09:42 +0100 Subject: [PATCH] bug fixes --- CHANGELOG.md | 4 ++ SolutionOpenPopUp/VSPackage.cs | 17 ++++--- SolutionOpenPopUp/source.extension.cs | 2 +- .../source.extension.vsixmanifest | 44 +++++++++---------- 4 files changed, 37 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f8bbb6..c10d708 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ These are the changes to each version that has been released on the official Visual Studio extension gallery. +## 1.0.27 +**2017-08-21** +- [x] Minor bug fixes + ## 1.0.25 **2017-08-18** - [x] Bug fix diff --git a/SolutionOpenPopUp/VSPackage.cs b/SolutionOpenPopUp/VSPackage.cs index e6aa6c4..4b5fc13 100644 --- a/SolutionOpenPopUp/VSPackage.cs +++ b/SolutionOpenPopUp/VSPackage.cs @@ -48,19 +48,22 @@ private void OnSolutionOpened() SolutionOpenPopUpDotTxtHandler(); - ShowReadMeDotTxtHandler(); + ReadMeDotTxtHandler(); var popUpBody = GetPopUpBody(textFileDtos); - if (GeneralOptionsDto.ShowFileNamesInPopUp) + if (!string.IsNullOrEmpty(popUpBody)) { - popUpBody += GetPopUpFooter(); - } + if (GeneralOptionsDto.ShowFileNamesInPopUp) + { + popUpBody += GetPopUpFooter(); + } - DisplayPopUpMessage(string.Empty, popUpBody); + DisplayPopUpMessage(string.Empty, popUpBody); + } } - private void ShowReadMeDotTxtHandler() + private void ReadMeDotTxtHandler() { if (GeneralOptionsDto.ShowReadMeDotTxt) { @@ -138,7 +141,7 @@ private string GetPopUpMessage(TextFileDto textFileDto) } else { - popUpFooter += bulletPoint + textFileDto + " not found."; + popUpFooter += bulletPoint + textFileDto.FileName + " not found."; popUpFooter += Environment.NewLine; } diff --git a/SolutionOpenPopUp/source.extension.cs b/SolutionOpenPopUp/source.extension.cs index ddbb28b..a3ba540 100644 --- a/SolutionOpenPopUp/source.extension.cs +++ b/SolutionOpenPopUp/source.extension.cs @@ -12,7 +12,7 @@ static class Vsix public const string Description = @"Display the contents of certain text files when the solution is opened in a pop-up window. A handy way to share solution-specific gotchas, non-critical team messages or your own personal notes for a solution. "; public const string Language = "en-US"; - public const string Version = "1.0.25"; + public const string Version = "1.0.27"; public const string Author = "Greg Trevellick"; public const string Tags = "solution open, popup, pop-up, pop up, gotcha, gotchas, read me, readme, readme.txt"; } diff --git a/SolutionOpenPopUp/source.extension.vsixmanifest b/SolutionOpenPopUp/source.extension.vsixmanifest index c5fc3e1..75cbb4f 100644 --- a/SolutionOpenPopUp/source.extension.vsixmanifest +++ b/SolutionOpenPopUp/source.extension.vsixmanifest @@ -1,26 +1,26 @@  - - - Solution Open Pop Up - Display the contents of certain text files when the solution is opened in a pop-up window. A handy way to share solution-specific gotchas, non-critical team messages or your own personal notes for a solution. + + + Solution Open Pop Up + Display the contents of certain text files when the solution is opened in a pop-up window. A handy way to share solution-specific gotchas, non-critical team messages or your own personal notes for a solution. - https://github.com/GregTrevellick/SolutionOpenPopUp - LICENSE.txt - https://github.com/GregTrevellick/SolutionOpenPopUp/blob/master/CHANGELOG.md - Resources\VsixExtensionIcon_90x90.png - Resources\VsixExtensionPreview_175x175.png - solution open, popup, pop-up, pop up, gotcha, gotchas, read me, readme, readme.txt - - - - - - - - - - - - + https://github.com/GregTrevellick/SolutionOpenPopUp + LICENSE.txt + https://github.com/GregTrevellick/SolutionOpenPopUp/blob/master/CHANGELOG.md + Resources\VsixExtensionIcon_90x90.png + Resources\VsixExtensionPreview_175x175.png + solution open, popup, pop-up, pop up, gotcha, gotchas, read me, readme, readme.txt + + + + + + + + + + + +