poyka
Version:
A framework for interactively creating, extending and maintaining web application as never easier before while doing it in elegant design patterns.
37 lines • 2.42 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MySnippets = void 0;
const decova_terminal_1 = require("decova-terminal");
class MySnippets {
static TakeControl() {
return __awaiter(this, void 0, void 0, function* () {
let ops = { edit: 'Edit' };
let selected = yield decova_terminal_1.CurrentTerminal.McqAsync('Pick your command:', ops);
switch (selected) {
case ops.edit:
yield decova_terminal_1.CurrentTerminal.AskForTextAsync("Press Enter to open your snippets extension project.");
yield decova_terminal_1.CurrentTerminal.Exec(`code \"${this.projectDir}\".`);
decova_terminal_1.CurrentTerminal.Instruct("Pick your target file from /snippets dir and make your modifications to.");
decova_terminal_1.CurrentTerminal.Instruct("Update your package version.");
decova_terminal_1.CurrentTerminal.Instruct("@your project dir >> vsce package.");
decova_terminal_1.CurrentTerminal.Instruct("Browse to the generate vsix.");
yield decova_terminal_1.CurrentTerminal.AskForTextAsync("Press Enter to open your publish page.");
decova_terminal_1.CurrentTerminal.Exec("start https://marketplace.visualstudio.com/manage/publishers/georgemesseha");
decova_terminal_1.CurrentTerminal.Instruct("Publish your vsix to the page.");
break;
}
});
}
}
exports.MySnippets = MySnippets;
MySnippets.projectDir = "G:\\_MyProjects\\_VSCode Extensions\\decova-snippets";
//# sourceMappingURL=MySnippets.js.map