diff --git a/CHANGELOG.md b/CHANGELOG.md index 906c627..a59997d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 0.1.15 (July 26, 2020) + +* bug fix - Delimited comment "/**" doen't work. See [#100](https://github.com/kasecato/vscode-docomment/issues/100). + ## 0.1.14 (July 20, 2020) * bug fix - Enter behind <summary>, input too many "///"!. See [#95](https://github.com/kasecato/vscode-docomment/issues/95). diff --git a/src/Formatter/FormatterCSharp.ts b/src/Formatter/FormatterCSharp.ts index 8a0e1ed..480e8a6 100644 --- a/src/Formatter/FormatterCSharp.ts +++ b/src/Formatter/FormatterCSharp.ts @@ -39,9 +39,7 @@ export class FormatterCSharp { } docomment += '\n'; docomment += indent; - if (activateOnEnter) { - docomment += ' */'; - } + docomment += ' */'; return docomment; } diff --git a/src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts b/src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts index 560213f..9935fc4 100644 --- a/src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts +++ b/src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts @@ -34,7 +34,7 @@ export class SyntacticAnalysisCSharp { case CommentSyntax.single: return activeLine.match(/^[ \t]*\/{3}[ \t]*$/) !== null; // FIXME: case CommentSyntax.delimited: - return activeLine.match(/^[ \t]*\/\*{2}[ \t]*\*\/*[ \t]*$/) !== null; // FIXME: + return activeLine.match(/^[ \t]*\/\*{2}[ \t]*$/) !== null; // FIXME: } }