summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CodeParserController.ts
diff options
context:
space:
mode:
authorRowan Goemans <RB.Goemans@student.han.nl>2017-11-23 19:43:43 +0100
committerRowan Goemans <RB.Goemans@student.han.nl>2017-11-23 19:43:43 +0100
commit1499e8e59cf044807de26f040ec597e8ebe7c211 (patch)
treeab1dcf51ca30fe29db86085efbbbdcd6f930b756 /src/CodeParser/CodeParserController.ts
parent6c3b81d4aeb83518915e940bc02ccbbad43fabde (diff)
downloaddoxdocgen-1499e8e59cf044807de26f040ec597e8ebe7c211.tar.gz
-- Fixed bug where using a different trigger sequence then "*" causes a newline to be addd between the comment and the documented entity.
Diffstat (limited to 'src/CodeParser/CodeParserController.ts')
-rw-r--r--src/CodeParser/CodeParserController.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/CodeParser/CodeParserController.ts b/src/CodeParser/CodeParserController.ts
index bd5a60b..72aafa4 100644
--- a/src/CodeParser/CodeParserController.ts
+++ b/src/CodeParser/CodeParserController.ts
@@ -111,12 +111,9 @@ export default class CodeParserController {
currentPos.character - this.triggerSequence.length,
);
- let endReplace: Position = new Position(currentPos.line, currentPos.character);
+ let endReplace: Position = new Position(currentPos.line, currentPos.character + 1);
const nextLineText: string = window.activeTextEditor.document.lineAt(endReplace.line + 1).text;
- // VSCode may enter a * on itself, we don't want that in our comment.
- if (nextLineText.trim() === "*") {
- endReplace = new Position(currentPos.line + 1, nextLineText.length);
- }
+ endReplace = new Position(currentPos.line + 1, nextLineText.length);
parser.Parse(activeEditor, event).GenerateDoc(new Range(startReplace, endReplace));
}