text.ts -> fixed type errors

This commit is contained in:
tel0065
2022-03-25 11:03:06 -05:00
committed by GitHub
parent a619146afc
commit 2f4800448b

View File

@@ -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