From 9e1a44608cb42bf2d026311f8d3be3f8b6ca7170 Mon Sep 17 00:00:00 2001 From: RandomFractals Date: Sun, 4 Jun 2023 08:36:17 -0500 Subject: [PATCH] add invalid template url notification display to `prompts.ts` (#62) --- src/views/prompts.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/prompts.ts b/src/views/prompts.ts index 994baa5..f723e35 100644 --- a/src/views/prompts.ts +++ b/src/views/prompts.ts @@ -7,6 +7,9 @@ import { commands, Uri } from 'vscode'; import { Commands } from '../commands/commands'; import { installDependencies } from '../commands/build'; +/** + * Displays a dialog to install Evidence node.js dependencies. + */ export async function showInstallDependencies() { // prompt a user to install Evidence node.js dependencies window.showInformationMessage( @@ -54,5 +57,17 @@ export async function showOpenFolder(projectFolder: Uri) { commands.executeCommand(Commands.OpenFolder, projectFolder, true); } }); +} -} \ No newline at end of file +/** + * Displays invalid template project Url message. + * + * @param templateUrl The provided template project Url. + */ +export function showInvalidTemplateProjectUrlErrorMessage(templateUrl: string) { + // show invalid template project Url message + window.showErrorMessage( + `Invalided Evidence project template Url: ${templateUrl}.`, + 'OK' + ); +}