From 3c43f80fa2e3cc6617c4315b213c0b158c98c914 Mon Sep 17 00:00:00 2001 From: Pokey Rule Date: Sat, 3 Jul 2021 21:07:29 +0100 Subject: [PATCH] Very preliminary steps --- package.json | 4 ++++ src/extension.ts | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index adc0c4860e..bfb999d104 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,10 @@ { "command": "cursorless.toggleDecorations", "title": "Cursorless: Toggle decorations" + }, + { + "command": "cursorless.recordTestCase", + "title": "Cursorless: Record test case" } ], "colors": [ diff --git a/src/extension.ts b/src/extension.ts index 86e6641435..8f216cd1d9 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -72,7 +72,12 @@ export async function activate(context: vscode.ExtensionContext) { const graph = makeGraph(graphConstructors); var thatMark: SelectionWithEditor[] = []; - + const cursorlessRecordTestCaseDisposable = vscode.commands.registerCommand( + "cursorless.recordTestCase", + () => { + console.log("Hello world"); + } + ); const cursorlessCommandDisposable = vscode.commands.registerCommand( "cursorless.command", async ( @@ -202,6 +207,7 @@ export async function activate(context: vscode.ExtensionContext) { context.subscriptions.push( cursorlessCommandDisposable, + cursorlessRecordTestCaseDisposable, toggleDecorationsDisposable, vscode.window.onDidChangeTextEditorVisibleRanges(addDecorationsDebounced), vscode.window.onDidChangeActiveTextEditor(addDecorationsDebounced),