mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
text.ts -> fixed type errors
This commit is contained in:
parent
a619146afc
commit
2f4800448b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user