function activate(context) {
    vscode.languages.registerDocumentFormattingEditProvider("njk", {
        provideDocumentFormattingEdits(document, options, token) {
            const start = new vscode.Position(0, 0);
            const end = new vscode.Position(document.lineCount - 1, document.lineAt(document.lineCount - 1).text.length);
            const rng = new vscode.Range(start, end);
            return prettyDiff(document, rng, options);
        }
    });
    // Use the console to output diagnostic information (console.log) and errors (console.error)
    // This line of code will only be executed once when your extension is activated
    console.log('Congratulations, your extension "nunjucks-vscode-extensionpack" is now active!');
    // The command has been defined in the package.json file
    // Now provide the implementation of the command with  registerCommand
    // The commandId parameter must match the command field in package.json
    let disposable = vscode.commands.registerCommand("extension.sayHello", () => {
        // The code you place here will be executed every time your command is executed
        // Display a message box to the user
        vscode.window.showInformationMessage("Hello World!");
    });
    context.subscriptions.push(disposable);
}
// your extension is activated the very first time the command is executed
your extension is activated the very first time the command is executed
your extension is activated the very first time the command is executed
function activate(context) {
    vscode.languages.registerDocumentFormattingEditProvider("njk", {
        provideDocumentFormattingEdits(document, options, token) {
            const start = new vscode.Position(0, 0);
            const end = new vscode.Position(document.lineCount - 1, document.lineAt(document.lineCount - 1).text.length);
            const rng = new vscode.Range(start, end);
            return prettyDiff(document, rng, options);
        }
    });
    console.log('Congratulations, your extension "nunjucks-vscode-extensionpack" is now active!');
    let disposable = vscode.commands.registerCommand("extension.sayHello", () => {
        vscode.window.showInformationMessage("Hello World!");
    });
    context.subscriptions.push(disposable);
}
function activate ( context ) { vscode . languages . registerDocumentFormattingEditProvider ( "njk" , { provideDocumentFormattingEdits ( document , options , token ) { const start = new vscode . Position ( 0 , 0 ) ; const end = new vscode . Position ( document . lineCount - 1 , document . lineAt ( document . lineCount - 1 ) . text . length ) ; const rng = new vscode . Range ( start , end ) ; return prettyDiff ( document , rng , options ) ; } } ) ; console . log ( 'Congratulations, your extension "nunjucks-vscode-extensionpack" is now active!' ) ; let disposable = vscode . commands . registerCommand ( "extension.sayHello" , ( ) => { vscode . window . showInformationMessage ( "Hello World!" ) ; } ) ; context . subscriptions . push ( disposable ) ; }
your extension is activated the very first time the command is executed
your extension is activated the very first time the command is executed
// Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only be executed once when your extension is activated // The command has been defined in the package.json file // Now provide the implementation of the command with  registerCommand // The commandId parameter must match the command field in package.json // The code you place here will be executed every time your command is executed // Display a message box to the user