From 5368c8151df632ba0ebd863cbc7ff105dc4027bf Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Thu, 1 Mar 2018 23:17:23 +0100 Subject: Change config structure --- src/CodeParserController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CodeParserController.ts') 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; -- cgit v1.2.3