From f29be90298d4e852d3f08fef1564bc29d35c93ab Mon Sep 17 00:00:00 2001 From: EWSoftware Date: Mon, 1 Mar 2021 13:54:57 -0800 Subject: [PATCH] Bug fix Changes made: - Fixed loading of code analysis dictionaries with .NET Core/Standard SDK format project files. Fixes #228. - Update HtmlAgilityPack NuGet package and fixed up parser file offsets. --- Docs/Content/Installation.aml | 3 + .../Content/VersionHistory/VersionHistory.aml | 6 ++ Docs/Content/VersionHistory/v2021.3.1.0.aml | 29 +++++++ Docs/ContentLayout.content | 9 +- Docs/VSSpellCheckerDocs.shfbproj | 3 +- .../ProjectSpellCheck/CodeClassifier.cs | 43 ++++++++-- .../ProjectSpellCheck/HtmlClassifier.cs | 83 +++++++++++++++---- .../ProjectSpellCheck/SpellCheckFileInfo.cs | 34 ++++++-- .../ProjectSpellCheck/XmlClassifier.cs | 7 +- Source/VSSpellChecker/SpellingServiceProxy.cs | 25 ++---- .../SolutionProjectSpellCheckControl.xaml.cs | 35 ++++---- .../VSSpellChecker2017AndLater.csproj | 4 +- Source/VSSpellChecker/packages.config | 2 +- .../source.extension.vsixmanifest | 2 +- .../Properties/AssemblyInfoShared.cs | 6 +- 15 files changed, 211 insertions(+), 80 deletions(-) create mode 100644 Docs/Content/VersionHistory/v2021.3.1.0.aml diff --git a/Docs/Content/Installation.aml b/Docs/Content/Installation.aml index dbb6b84..543c5b0 100644 --- a/Docs/Content/Installation.aml +++ b/Docs/Content/Installation.aml @@ -112,6 +112,9 @@ global spell checker settings. + A spell checker toolbar is also available. Right click anywhere in the Visual Studio toolbar area +and select the Spell Checker option from the context menu to display it. + diff --git a/Docs/Content/VersionHistory/VersionHistory.aml b/Docs/Content/VersionHistory/VersionHistory.aml index 52ddb40..3cef51f 100644 --- a/Docs/Content/VersionHistory/VersionHistory.aml +++ b/Docs/Content/VersionHistory/VersionHistory.aml @@ -9,6 +9,12 @@ project. Select a version below to see a description of its changes.
+ + + + + + diff --git a/Docs/Content/VersionHistory/v2021.3.1.0.aml b/Docs/Content/VersionHistory/v2021.3.1.0.aml new file mode 100644 index 0000000..00bcfde --- /dev/null +++ b/Docs/Content/VersionHistory/v2021.3.1.0.aml @@ -0,0 +1,29 @@ + + + + + Changes in this release: + + +
+ + + + Fixed loading of code analysis dictionaries with .NET Core/Standard SDK format project files. + + + + Merged changes from Walter Goodwin to add a spell checker toolbar. + + + + + +
+ + + + + +
+
diff --git a/Docs/ContentLayout.content b/Docs/ContentLayout.content index 252bdd6..2e7063d 100644 --- a/Docs/ContentLayout.content +++ b/Docs/ContentLayout.content @@ -149,11 +149,16 @@ - + - + + + + + + diff --git a/Docs/VSSpellCheckerDocs.shfbproj b/Docs/VSSpellCheckerDocs.shfbproj index 2623dc4..d9924d6 100644 --- a/Docs/VSSpellCheckerDocs.shfbproj +++ b/Docs/VSSpellCheckerDocs.shfbproj @@ -49,7 +49,7 @@ - 2021.1.23.0 + 2021.3.1.0 0 ..\Source\ True @@ -183,6 +183,7 @@ + diff --git a/Source/VSSpellChecker/ProjectSpellCheck/CodeClassifier.cs b/Source/VSSpellChecker/ProjectSpellCheck/CodeClassifier.cs index 7f53087..da0e34f 100644 --- a/Source/VSSpellChecker/ProjectSpellCheck/CodeClassifier.cs +++ b/Source/VSSpellChecker/ProjectSpellCheck/CodeClassifier.cs @@ -2,9 +2,8 @@ // System : Visual Studio Spell Checker Package // File : CodeClassifier.cs // Author : Eric Woodruff (Eric@EWoodruff.us) -// Updated : 09/02/2018 -// Note : Copyright 2015-2018, Eric Woodruff, All rights reserved -// Compiler: Microsoft Visual C# +// Updated : 02/28/2021 +// Note : Copyright 2015-2021, Eric Woodruff, All rights reserved // // This file contains a class used to classify source code file content using a set of regular expressions // @@ -199,41 +198,73 @@ private void ParseNode(HtmlNode node, List spans) var commentNode = (HtmlCommentNode)node; if(commentNode.OuterHtml.StartsWith("