summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CodeParserController.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <christophschlosser@users.noreply.github.com>2017-11-23 21:57:28 +0100
committerGitHub <noreply@github.com>2017-11-23 21:57:28 +0100
commitf397690f9fd9702d03ea1e1a6fbbfecd922e87be (patch)
treeda6822dacd128c75c81adf1f81ccee76382bbc9f /src/CodeParser/CodeParserController.ts
parentac189c2150c598df6bc7bd8e3215540f257983d8 (diff)
parent5616ad38e085b1270ad8ce230aeeff057b7d4b42 (diff)
downloaddoxdocgen-f397690f9fd9702d03ea1e1a6fbbfecd922e87be.tar.gz
Merge pull request #32 from rowanG077/master
Fixed parser bug and comment generation bug.
Diffstat (limited to 'src/CodeParser/CodeParserController.ts')
-rw-r--r--src/CodeParser/CodeParserController.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CodeParser/CodeParserController.ts b/src/CodeParser/CodeParserController.ts
index bd5a60b..f4c07de 100644
--- a/src/CodeParser/CodeParserController.ts
+++ b/src/CodeParser/CodeParserController.ts
@@ -111,12 +111,8 @@ export default class CodeParserController {
currentPos.character - this.triggerSequence.length,
);
- let endReplace: Position = new Position(currentPos.line, currentPos.character);
- 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);
- }
+ const nextLineText: string = window.activeTextEditor.document.lineAt(startReplace.line + 1).text;
+ const endReplace = new Position(currentPos.line + 1, nextLineText.length);
parser.Parse(activeEditor, event).GenerateDoc(new Range(startReplace, endReplace));
}