mirror of
				https://github.com/We-Dont-Byte/Mind_Reader.git
				synced 2025-02-04 10:38:42 +00:00 
			
		
		
		
	text.ts -> fixed type errors
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user