summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CodeParserController.ts
diff options
context:
space:
mode:
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));
}