From 2f4800448baa957bf61ef432c6c5c1d042ed58a7 Mon Sep 17 00:00:00 2001 From: tel0065 <77864718+tel0065@users.noreply.github.com> Date: Fri, 25 Mar 2022 11:03:06 -0500 Subject: [PATCH] text.ts -> fixed type errors --- src/commands/text.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/text.ts b/src/commands/text.ts index a4505b4..d1bc2c6 100755 --- a/src/commands/text.ts +++ b/src/commands/text.ts @@ -201,9 +201,9 @@ function runCursorContext(): void { } const cursorPos: any = editor.selection.active; - const text: string = editor.document.lineAt(cursorPos).text; + const text: any = editor.document.lineAt(cursorPos).text; const windowSize: number = vscode.workspace.getConfiguration('mindReader').get('reader.contextWindow'); - let trimmedText: string = text.trimStart(); // trim leading whitespace + let trimmedText: any = text.trimStart(); // trim leading whitespace let leadingWS: number = text.length - trimmedText.length; // # of characters of leading whitespace let pos: number = leadingWS; let maxPos: number = text.length; @@ -262,4 +262,3 @@ function runCursorContext(): void { } } } -//# sourceMappingURL=text.js.map