summaryrefslogtreecommitdiffstats
path: root/src/CodeParserController.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2018-03-01 23:17:23 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2018-03-02 20:24:28 +0100
commit5368c8151df632ba0ebd863cbc7ff105dc4027bf (patch)
treedd27cde65349833d14fde7a12880958592016dc3 /src/CodeParserController.ts
parenta936ada9f3609466f73d7c23450bfb3c0ce7e6ee (diff)
downloaddoxdocgen-5368c8151df632ba0ebd863cbc7ff105dc4027bf.tar.gz
Change config structure
Diffstat (limited to 'src/CodeParserController.ts')
-rw-r--r--src/CodeParserController.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CodeParserController.ts b/src/CodeParserController.ts
index 1b42f3d..1084c46 100644
--- a/src/CodeParserController.ts
+++ b/src/CodeParserController.ts
@@ -72,7 +72,7 @@ export default class CodeParserController {
const cont: string = activeLine.text.trim();
- return this.cfg.triggerSequence === cont;
+ return this.cfg.C.triggerSequence === cont;
}
private onEvent(activeEditor: TextEditor, event: TextDocumentContentChangeEvent) {
@@ -97,7 +97,7 @@ export default class CodeParserController {
const currentPos: Position = window.activeTextEditor.selection.active;
const startReplace: Position = new Position(
currentPos.line,
- currentPos.character - this.cfg.triggerSequence.length,
+ currentPos.character - this.cfg.C.triggerSequence.length,
);
const nextLineText: string = window.activeTextEditor.document.lineAt(startReplace.line + 1).text;