mindReader -> mind-reader

This commit is contained in:
John 2022-05-05 20:49:15 -05:00
parent ec6b96bd9a
commit 3bffd6a9fd
4 changed files with 7 additions and 7 deletions

View File

@ -244,17 +244,17 @@
{ {
"command": "editor.action.fontZoomOut", "command": "editor.action.fontZoomOut",
"key": "Shift+Alt+z -", "key": "Shift+Alt+z -",
"when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
}, },
{ {
"command": "editor.action.fontZoomIn", "command": "editor.action.fontZoomIn",
"key": "Shift+Alt+z =", "key": "Shift+Alt+z =",
"when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
}, },
{ {
"command": "editor.action.fontZoomReset", "command": "editor.action.fontZoomReset",
"key": "Shift+Alt+z 0", "key": "Shift+Alt+z 0",
"when": "editorTextFocus && config.mindReader.reader.screenReader != JAWS" "when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
}, },
{ {
"command": "mind-reader.getIndent", "command": "mind-reader.getIndent",

View File

@ -65,7 +65,7 @@ async function connectHub(): Promise<void> {
return; 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) { if (!portPath) {
let slots: vscode.QuickPickItem[] = []; let slots: vscode.QuickPickItem[] = [];

View File

@ -316,7 +316,7 @@ function createContextString(context: pl.LexNode[], line: number): string {
/* /*
* find up to `n` words around the cursor, where `n` is * 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 { function runCursorContext(): void {
const editor: TextEditor | undefined = window.activeTextEditor; const editor: TextEditor | undefined = window.activeTextEditor;
@ -328,7 +328,7 @@ function runCursorContext(): void {
const cursorPos : Position = editor.selection.active; const cursorPos : Position = editor.selection.active;
const text : string = editor.document.lineAt(cursorPos).text; 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 let trimmedText: string = text.trimStart(); // trim leading whitespace
const leadingWS : number = text.length - trimmedText.length; // # of characters of leading whitespace const leadingWS : number = text.length - trimmedText.length; // # of characters of leading whitespace
let pos : number = leadingWS; let pos : number = leadingWS;

View File

@ -7,7 +7,7 @@ import { lineHighlighter } from "./lineHi
import { accessCommands, hubCommands, navCommands, textCommands } from "./commands"; import { accessCommands, hubCommands, navCommands, textCommands } from "./commands";
// Output Logger // 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"); const outputChannel = vscode.window.createOutputChannel(product + " Output");
export const logger = new Logger(outputChannel); export const logger = new Logger(outputChannel);