From e37dcc1a0dd1a775943cbb6682e0e88fc94c39f5 Mon Sep 17 00:00:00 2001 From: kasecato Date: Sun, 26 Jul 2020 14:11:19 +0900 Subject: [PATCH] Fixed #100 delimited comment /** doen't work --- CHANGELOG.md | 4 ++++ src/Formatter/FormatterCSharp.ts | 4 +--- src/SyntacticAnalysis/SyntacticAnalysisCSharp.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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: } }