mirror of
				https://github.com/We-Dont-Byte/Mind_Reader.git
				synced 2025-02-04 10:38:42 +00:00 
			
		
		
		
	mindReader -> mind-reader
This commit is contained in:
		@@ -65,7 +65,7 @@ async function connectHub(): Promise<void> {
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      let portPath: string | undefined = vscode.workspace.getConfiguration('mindReader.connection').get('portPath');
 | 
			
		||||
      let portPath: string | undefined = vscode.workspace.getConfiguration('mind-reader.connection').get('portPath');
 | 
			
		||||
 | 
			
		||||
      if (!portPath) {
 | 
			
		||||
        let slots: vscode.QuickPickItem[] = [];
 | 
			
		||||
 
 | 
			
		||||
@@ -316,7 +316,7 @@ function createContextString(context: pl.LexNode[], line: number): string {
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * find up to `n` words around the cursor, where `n` is
 | 
			
		||||
 * the value of `#mindReader.reader.contextWindow`
 | 
			
		||||
 * the value of `#mind-reader.reader.contextWindow`
 | 
			
		||||
 */
 | 
			
		||||
function runCursorContext(): void {
 | 
			
		||||
    const editor: TextEditor | undefined = window.activeTextEditor;
 | 
			
		||||
@@ -328,7 +328,7 @@ function runCursorContext(): void {
 | 
			
		||||
 | 
			
		||||
    const cursorPos  : Position = editor.selection.active;
 | 
			
		||||
    const text       : string   = editor.document.lineAt(cursorPos).text;
 | 
			
		||||
    const windowSize : any      = workspace.getConfiguration('mindReader').get('reader.contextWindow');
 | 
			
		||||
    const windowSize : any      = workspace.getConfiguration('mind-reader').get('reader.contextWindow');
 | 
			
		||||
    let   trimmedText: string   = text.trimStart(); // trim leading whitespace
 | 
			
		||||
    const leadingWS  : number   = text.length - trimmedText.length; // # of characters of leading whitespace
 | 
			
		||||
    let   pos        : number   = leadingWS;
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import { lineHighlighter }                                        from "./lineHi
 | 
			
		||||
import { accessCommands, hubCommands, navCommands, textCommands } from "./commands";
 | 
			
		||||
 | 
			
		||||
// Output Logger
 | 
			
		||||
const product: string = vscode.workspace.getConfiguration("mindReader").get("productType")!;
 | 
			
		||||
const product: string = vscode.workspace.getConfiguration("mind-reader").get("productType")!;
 | 
			
		||||
const outputChannel   = vscode.window.createOutputChannel(product + " Output");
 | 
			
		||||
export const logger   = new Logger(outputChannel);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user