-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added support for the todo note type and the title attribute on the note XML comments element. - Updated the help project to use the new Default2022 style. - Split the projects into separate solutions for VS2019 and VS2022.
- Loading branch information
1 parent
63a5445
commit 42f2950
Showing
20 changed files
with
205 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<topic id="23ea721a-0a75-48c7-8457-7614bf3c4926" revisionNumber="1"> | ||
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<introduction> | ||
<para>Changes made in this release:</para> | ||
</introduction> | ||
|
||
<section> | ||
<content> | ||
|
||
<list class="bullet"> | ||
<listItem> | ||
<para>Added support for the <codeInline>title</codeInline> attribute and the <codeInline>todo</codeInline> | ||
note type for the <codeInline>note</codeInline> XML comments element.</para> | ||
</listItem> | ||
</list> | ||
|
||
</content> | ||
</section> | ||
|
||
<relatedTopics> | ||
<link xlink:href="caa20db4-521f-4c4c-8399-aea8a81ae6a7" /> | ||
</relatedTopics> | ||
|
||
</developerConceptualDocument> | ||
</topic> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
// System : Extended Doc Comments Completion Provider Package | ||
// File : CSharpXmlDocCommentsCompletionProvider.cs | ||
// Author : Eric Woodruff ([email protected]) | ||
// Updated : 07/05/2021 | ||
// Note : Copyright 2019-2021, Eric Woodruff, All rights reserved | ||
// Updated : 07/29/2021 | ||
// Note : Copyright 2019-2022, Eric Woodruff, All rights reserved | ||
// | ||
// This file contains the extended documentation comments completion provider for C# | ||
// | ||
|
@@ -194,7 +194,7 @@ private static async Task<IEnumerable<CompletionItem>> GetItemsAsync(Document do | |
var token = tree.FindTokenOnLeftOfPosition(position, cancellationToken); | ||
var parentTrivia = token.Parent?.FirstAncestorOrSelf<DocumentationCommentTriviaSyntax>(); | ||
|
||
if(parentTrivia == null || parentTrivia.ParentTrivia.Token.Kind() == SyntaxKind.None) | ||
if(parentTrivia == null || parentTrivia.ParentTrivia.Token.IsKind(SyntaxKind.None)) | ||
return null; | ||
|
||
// Offer attribute names based on the element | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
// System : Extended Doc Comments Completion Provider Package | ||
// File : CommentsElement.cs | ||
// Author : Eric Woodruff ([email protected]) | ||
// Updated : 10/22/2019 | ||
// Note : Copyright 2019, Eric Woodruff, All rights reserved | ||
// Updated : 07/29/2022 | ||
// Note : Copyright 2019-2022, Eric Woodruff, All rights reserved | ||
// | ||
// This file contains the class used to define an XML documentation comments element | ||
// | ||
|
@@ -17,7 +17,7 @@ | |
// 10/18/2019 EFW Created the code | ||
//=============================================================================================================== | ||
|
||
// Ignore Spelling: cpp fs javascript vbnet html xml xsl xaml sql py pshell cref threadsafety href seealso | ||
// Ignore Spelling: cpp fs javascript vbnet html xml xsl xaml sql py pshell cref threadsafety href seealso todo | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
|
@@ -343,8 +343,9 @@ private static Dictionary<string, CommentsElement> CreateDefaultCommentElements( | |
Description = "Create a note within a topic to draw attention to some important information." | ||
}.AddAttributes(new [] { | ||
new ElementAttribute(new[] { "note", "tip", "implement", "caller", "inherit", "caution", | ||
"warning", "important", "security", "cs", "cpp", "vb" }) { | ||
Name = "type", Description = "Specifies the note type." } | ||
"warning", "important", "security", "cs", "cpp", "vb", "todo" }) { | ||
Name = "type", Description = "Specifies the note type." }, | ||
new ElementAttribute { Name = "title", Description = "An optional title override" } | ||
}), | ||
new CommentsElement | ||
{ | ||
|
Oops, something went wrong.