From fec7709f281e77c472507ebacc0de419c8872b8e Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Thu, 6 Oct 2022 22:05:43 -0500 Subject: [PATCH 1/2] Add a link to the walkthrough page --- .vscode/launch.json | 3 ++- src/common/Registrar.ts | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 446f6f33..80af3d54 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,8 @@ "type": "extensionHost", "request": "launch", "args": [ - "--extensionDevelopmentPath=${workspaceFolder}" + "--extensionDevelopmentPath=${workspaceFolder}", + "--profile-temp" ], "outFiles": [ "${workspaceFolder}/dist/**/*.js" diff --git a/src/common/Registrar.ts b/src/common/Registrar.ts index ef8afb07..668a541e 100644 --- a/src/common/Registrar.ts +++ b/src/common/Registrar.ts @@ -27,6 +27,7 @@ import ShowLogFile from 'command/ShowLogFile'; import TryProcessAgain from '../command/TryProcessAgain'; import { + EXTENSION_ID, JOB_TREE_VIEW_ID, LICENSE_TREE_VIEW_ID, LOG_FILE_SCHEME, @@ -115,10 +116,10 @@ export default class Registrar { registerHandlers() { this.firstActivation.handle(this.context); - // Entering this URI in the browser will show the license key input: - // vscode://LocalCI.local-ci/enterLicense this.editorGateway.editor.window.registerUriHandler({ handleUri: (uri: vscode.Uri) => { + // Entering this URI in the browser will show the license key input: + // vscode://LocalCI.local-ci/EnterLicense if (uri.path === '/enterLicense') { this.licenseInput.show( this.context, @@ -126,6 +127,14 @@ export default class Registrar { () => this.jobProvider.hardRefresh() ); } + + // vscode://LocalCI.local-ci/walkthrough + if (uri.path === '/walkthrough') { + this.editorGateway.editor.commands.executeCommand( + 'workbench.action.openWalkthrough', + `${EXTENSION_ID}#welcomeLocalCi` + ); + } }, }); From 77a77ada085c0fad6fd5f861be847e109f55b0a7 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Thu, 6 Oct 2022 22:17:15 -0500 Subject: [PATCH 2/2] Make e lower case --- src/common/Registrar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Registrar.ts b/src/common/Registrar.ts index 668a541e..e99cae93 100644 --- a/src/common/Registrar.ts +++ b/src/common/Registrar.ts @@ -119,7 +119,7 @@ export default class Registrar { this.editorGateway.editor.window.registerUriHandler({ handleUri: (uri: vscode.Uri) => { // Entering this URI in the browser will show the license key input: - // vscode://LocalCI.local-ci/EnterLicense + // vscode://LocalCI.local-ci/enterLicense if (uri.path === '/enterLicense') { this.licenseInput.show( this.context,