Skip to content

Commit

Permalink
generate as generate
Browse files Browse the repository at this point in the history
  • Loading branch information
aroary committed Jul 17, 2022
1 parent d996713 commit 5699dde
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function text() {
var count = await vscode.window.showInputBox({
ignoreFocusOut: true,
placeHolder: 'Number of type to generate',
validateInput: value => parseInt(value) > 1 ? null : "Please enter a number greater than one"
validateInput: value => parseInt(value) > 0 ? null : "Please enter a number greater than zero"
});
count = parseInt(count);
if (!count) return;
Expand Down
2 changes: 1 addition & 1 deletion commands/image.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const vscode = require('vscode');
const sharp = require('sharp');
const path = require("path");
const generate = require("../utilities/lorem_ipsum").word;
const generate = require("../utilities/generate").word;

async function execute() {
if (!vscode.workspace.name) return vscode.window.showErrorMessage("Please open a workspace before using this command.");
Expand Down
4 changes: 2 additions & 2 deletions commands/text.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const vscode = require('vscode');
const generate = require("../utilities/lorem_ipsum");
const generate = require("../utilities/generate");

async function execute() {
const type = await vscode.window.showQuickPick([
Expand All @@ -20,7 +20,7 @@ async function execute() {
var count = await vscode.window.showInputBox({
ignoreFocusOut: true,
placeHolder: 'Number of type to generate',
validateInput: value => parseInt(value) > 1 ? null : "Please enter a number greater than one"
validateInput: value => parseInt(value) > 0 ? null : "Please enter a number greater than zero"
});
count = parseInt(count);
if (!count) return;
Expand Down
File renamed without changes.

0 comments on commit 5699dde

Please sign in to comment.