Create pijul output channel and configure activation events
[?]
Dec 22, 2020, 6:10 AM
3N3RS66TMPGMAKX3CP2HWWGAB24Z5FZEWFPKTJEWULC7CHHMWTGACDependencies
- [2]
NCBEWRYEInitialize Repository
Change contents
- replacement in src/extension.ts at line 5
// this method is called when your extension is activated// your extension is activated the very first time the command is executedexport function activate(context: vscode.ExtensionContext) {async function _activate(context: vscode.ExtensionContext, disposables: vscode.Disposable[]) {vscode.window.showInformationMessage("Pijul repository detected in workspace, extension has been activated.");console.log('Pijul VS Code Integration Activated');const outputChannel = vscode.window.createOutputChannel("Pijul");disposables.push(outputChannel);disposables.push(vscode.commands.registerCommand("pijul.showOutput", () => outputChannel.show())); - replacement in src/extension.ts at line 15
console.log('Congratulations, your extension "pijul-vscode" is now active!');const config = vscode.workspace.getConfiguration('pijul');const showWarning = config.get<boolean>("ignoreMissingInstallation"); - replacement in src/extension.ts at line 21
let disposable = vscode.commands.registerCommand('pijul-vscode.helloWorld', () => {disposables.push(vscode.commands.registerCommand('pijul.helloWorld', () => { - replacement in src/extension.ts at line 25
vscode.window.showInformationMessage('Hello World from pijul-vscode, hooray!');});context.subscriptions.push(disposable);vscode.window.showInformationMessage('Show warning is ' + showWarning);})); - edit in src/extension.ts at line 28
// this method is called when your extension is activated// your extension is activated the very first time the command is executedexport async function activate(context: vscode.ExtensionContext) {const disposables: vscode.Disposable[] = [];context.subscriptions.push(new vscode.Disposable(() => vscode.Disposable.from(...disposables).dispose()));await _activate(context, disposables).catch(err => console.error(err));} - replacement in package.json at line 2
"name": "pijul-vscode","name": "pijul-vscode", - replacement in package.json at line 13
"onCommand:pijul-vscode.helloWorld""workspaceContains:**/.pijul" - replacement in package.json at line 19
"command": "pijul-vscode.helloWorld","title": "Hello World""command": "pijul.helloWorld","title": "Hello World","category": "Pijul"},{"command": "pijul.showOutput","title": "Show Pijul Ouput","category": "Pijul" - replacement in package.json at line 28
]],"configuration": {"title": "Pijul","properties": {"pijul.ignoreMissingInstallation": {"type": "boolean","description": "Ignores the warning when a Pijul installation cannot be found","default": false}}} - edit in package.json at line 52
"@types/vscode": "^1.52.0", - replacement in package.json at line 55
"eslint": "^7.15.0","@types/vscode": "^1.52.0", - edit in package.json at line 58
"eslint": "^7.16.0", - edit in package.json at line 61
"ts-loader": "^8.0.11", - edit in package.json at line 64
"ts-loader": "^8.0.11",