Path: blob/main/extensions/copilot/test/simulation/fixtures/multiFileEdit/asciiart/src/extension.ts
13406 views
// The module 'vscode' contains the VS Code extensibility API1// Import the module and reference it with the alias vscode in your code below2import * as vscode from 'vscode';34// This method is called when your extension is activated5// Your extension is activated the very first time the command is executed6export function activate(context: vscode.ExtensionContext) {78// Use the console to output diagnostic information (console.log) and errors (console.error)9// This line of code will only be executed once when your extension is activated10console.log('Congratulations, your extension "test-multifile-1" is now active!');1112// The command has been defined in the package.json file13// Now provide the implementation of the command with registerCommand14// The commandId parameter must match the command field in package.json15const disposable = vscode.commands.registerCommand('test-multifile-1.helloWorld', () => {16// The code you place here will be executed every time your command is executed17// Display a message box to the user18vscode.window.showInformationMessage('Hello World from test-multifile-1!');19});2021context.subscriptions.push(disposable);22}2324// This method is called when your extension is deactivated25export function deactivate() { }262728