Skip to content

Commit

Permalink
Add Learn More link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Etchells committed Sep 17, 2019
1 parent 79e8b8a commit f8900a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/src/command/connection/ManageTemplateReposCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import WebviewUtil from "../webview/WebviewUtil";
import Log from "../../Logger";
import Requester from "../../codewind/project/Requester";
import MCUtil from "../../MCUtil";
import Commands from "../../constants/Commands";
import Constants from "../../constants/Constants";
// import Constants from "../../constants/Constants";

/**
Expand Down Expand Up @@ -53,6 +55,7 @@ export interface IRepoEnablement {
}

const REPOS_PAGE_TITLE = "Template Sources";
const LEARN_MORE_LINK = Constants.CW_SITE_BASEURL + "mdt-vsc-usingadifferenttemplate.html";

// Only allow one of these for now - This should be moved to be per-connection like how overview is per-project.
let manageReposPage: vscode.WebviewPanel | undefined;
Expand Down Expand Up @@ -173,8 +176,7 @@ async function handleWebviewMessage(this: Connection, msg: WebviewUtil.IWVMessag
break;
}
case ManageReposWVMessages.HELP: {
vscode.window.showInformationMessage("More information about this page, or open a webpage, probably");
// vscode.commands.executeCommand(Commands.VSC_OPEN, vscode.Uri.parse(LEARN_MORE_LINK));
vscode.commands.executeCommand(Commands.VSC_OPEN, vscode.Uri.parse(LEARN_MORE_LINK));
break;
}
case ManageReposWVMessages.REFRESH: {
Expand Down

0 comments on commit f8900a1

Please sign in to comment.