Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding command to create a gauge project from vscode #211 #215

Merged
merged 3 commits into from
Apr 13, 2018

Conversation

BugDiver
Copy link
Member

No description provided.

@ghost ghost assigned BugDiver Mar 27, 2018
@ghost ghost added the in progress label Mar 27, 2018
@cla-bot cla-bot bot added the cla-signed label Mar 27, 2018
commands.executeCommand(VSCodeCommands.OpenFolder, uri, !!workspace.workspaceFolders);
}

cancle(message: string | Buffer) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancel instead of cancle

return new Promise(async (res, rej) => {
let ph = new ProgressHandler(p, res, rej);
if (this.isGaugeInstalled) await this.createFromCommandLine(template, projectFolder, ph);
else await this.createFromTemplate(template, projectFolder, ph);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets not mix async and promises. instead of await, can we do a .then and .catch?


import { VSCodeCommands, GaugeCommands, GaugeVSCodeCommands, GAUGE_TEMPLATE_URL } from "../constants";
import { FileListItem } from '../types/fileListItem';
import { spawnSync, execSync, spawn } from 'child_process';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spawnSync is not used?

let options: any = { prompt: "Enter a name for your new project", placeHolder: "gauge-tests" };
const name = await window.showInputBox();
if (!name) return;
options = { canSelectFolders: true, openLabel: "Select a folder to create the project in" };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use canSelectMany to enforce a single folder selection. Ref: here

@ghost ghost assigned sriv Apr 13, 2018
@sriv sriv merged commit ad980e6 into master Apr 13, 2018
@ghost ghost removed the in progress label Apr 13, 2018
@sriv sriv deleted the create-project branch April 13, 2018 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants