Create pijul output channel and configure activation events

[?]
Dec 22, 2020, 6:10 AM
3N3RS66TMPGMAKX3CP2HWWGAB24Z5FZEWFPKTJEWULC7CHHMWTGAC

Dependencies

Change contents

  • replacement in src/extension.ts at line 5
    [2.107089][2.107089:107283]()
    // this method is called when your extension is activated
    // your extension is activated the very first time the command is executed
    export function activate(context: vscode.ExtensionContext) {
    [2.107089]
    [2.107283]
    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
    [2.107460][2.107460:107539]()
    console.log('Congratulations, your extension "pijul-vscode" is now active!');
    [2.107460]
    [2.107539]
    const config = vscode.workspace.getConfiguration('pijul');
    const showWarning = config.get<boolean>("ignoreMissingInstallation");
  • replacement in src/extension.ts at line 21
    [2.107742][2.107742:107827]()
    let disposable = vscode.commands.registerCommand('pijul-vscode.helloWorld', () => {
    [2.107742]
    [2.107827]
    disposables.push(vscode.commands.registerCommand('pijul.helloWorld', () => {
  • replacement in src/extension.ts at line 25
    [2.107949][2.107949:108078]()
    vscode.window.showInformationMessage('Hello World from pijul-vscode, hooray!');
    });
    context.subscriptions.push(disposable);
    [2.107949]
    [2.108078]
    vscode.window.showInformationMessage('Show warning is ' + showWarning);
    }));
  • edit in src/extension.ts at line 28
    [2.108080]
    [2.108080]
    // this method is called when your extension is activated
    // your extension is activated the very first time the command is executed
    export 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
    [2.108192][2.108192:108218]()
    "name": "pijul-vscode",
    [2.108192]
    [2.108218]
    "name": "pijul-vscode",
  • replacement in package.json at line 13
    [2.108440][2.108440:108484]()
    "onCommand:pijul-vscode.helloWorld"
    [2.108440]
    [2.108484]
    "workspaceContains:**/.pijul"
  • replacement in package.json at line 19
    [2.108559][2.108559:108628]()
    "command": "pijul-vscode.helloWorld",
    "title": "Hello World"
    [2.108559]
    [2.108628]
    "command": "pijul.helloWorld",
    "title": "Hello World",
    "category": "Pijul"
    },
    {
    "command": "pijul.showOutput",
    "title": "Show Pijul Ouput",
    "category": "Pijul"
  • replacement in package.json at line 28
    [2.108633][2.108633:108637]()
    ]
    [2.108633]
    [2.108637]
    ],
    "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
    [2.109192][2.109192:109222]()
    "@types/vscode": "^1.52.0",
  • replacement in package.json at line 55
    [2.109306][2.109306:109329]()
    "eslint": "^7.15.0",
    [2.109306]
    [2.109329]
    "@types/vscode": "^1.52.0",
  • edit in package.json at line 58
    [2.109418]
    [2.109418]
    "eslint": "^7.16.0",
  • edit in package.json at line 61
    [2.109459]
    [2.109459]
    "ts-loader": "^8.0.11",
  • edit in package.json at line 64
    [2.109512][2.109512:109538]()
    "ts-loader": "^8.0.11",