From bbf5074f0b8b2f6025ede54edcf809d3b308f19f Mon Sep 17 00:00:00 2001 From: Asa Ayers Date: Mon, 23 Oct 2023 15:02:38 -0700 Subject: [PATCH] v0.3 - AppExplorer: Connect --- package.json | 6 +++++- src/extension.ts | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3f7f49f..dd477c3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "app-explorer", "displayName": "app-explorer", "description": "Helps build documentation while navigating through code", - "version": "0.0.2", + "version": "0.0.3", "repository": "https://github.com/dropbox/AppExplorer", "engines": { "vscode": "^1.80.0" @@ -17,6 +17,10 @@ { "command": "app-explorer.createCard", "title": "AppExplorer: Create Card" + }, + { + "command": "app-explorer.connect", + "title": "AppExplorer: Connect" } ] }, diff --git a/src/extension.ts b/src/extension.ts index b1ba27e..2106b54 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -103,6 +103,15 @@ export function activate(context: vscode.ExtensionContext) { sockets, }; const io = makeExpressServer(cardsInEditor, handlerContext); + context.subscriptions.push( + vscode.commands.registerCommand("app-explorer.connect", () => { + // This command doesn't really need to do anything. By activating the + // extension it will launch the webserver. + // + // This is useful for connecting the board for navigation purposes + // instead of creating new cards. + }) + ); context.subscriptions.push( vscode.commands.registerCommand(