From 3bffd6a9fda5125199c73d3390ff1bf71676abd0 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 May 2022 20:49:15 -0500 Subject: [PATCH] mindReader -> mind-reader --- package.json | 6 +++--- src/commands/hub.ts | 2 +- src/commands/text.ts | 4 ++-- src/extension.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b019f0c..7410f44 100644 --- a/package.json +++ b/package.json @@ -244,17 +244,17 @@ { "command": "editor.action.fontZoomOut", "key": "Shift+Alt+z -", - "when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" + "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS" }, { "command": "editor.action.fontZoomIn", "key": "Shift+Alt+z =", - "when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" + "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS" }, { "command": "editor.action.fontZoomReset", "key": "Shift+Alt+z 0", - "when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" + "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS" }, { "command": "mind-reader.getIndent", diff --git a/src/commands/hub.ts b/src/commands/hub.ts index 55c9c3a..1b4ae63 100755 --- a/src/commands/hub.ts +++ b/src/commands/hub.ts @@ -65,7 +65,7 @@ async function connectHub(): Promise { 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[] = []; diff --git a/src/commands/text.ts b/src/commands/text.ts index 15006a1..791f3cb 100755 --- a/src/commands/text.ts +++ b/src/commands/text.ts @@ -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; diff --git a/src/extension.ts b/src/extension.ts index fcc634a..18c2158 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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);