Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
add invalid template url notification display to prompts.ts (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomFractals committed Jun 4, 2023
1 parent de643ad commit 9e1a446
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/views/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -54,5 +57,17 @@ export async function showOpenFolder(projectFolder: Uri) {
commands.executeCommand(Commands.OpenFolder, projectFolder, true);
}
});
}

}
/**
* 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'
);
}

0 comments on commit 9e1a446

Please sign in to comment.