Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulation/fixtures/multiFileEdit/asciiart/src/extension.ts
13406 views
1
// The module 'vscode' contains the VS Code extensibility API
2
// Import the module and reference it with the alias vscode in your code below
3
import * as vscode from 'vscode';
4
5
// This method is called when your extension is activated
6
// Your extension is activated the very first time the command is executed
7
export function activate(context: vscode.ExtensionContext) {
8
9
// Use the console to output diagnostic information (console.log) and errors (console.error)
10
// This line of code will only be executed once when your extension is activated
11
console.log('Congratulations, your extension "test-multifile-1" is now active!');
12
13
// The command has been defined in the package.json file
14
// Now provide the implementation of the command with registerCommand
15
// The commandId parameter must match the command field in package.json
16
const disposable = vscode.commands.registerCommand('test-multifile-1.helloWorld', () => {
17
// The code you place here will be executed every time your command is executed
18
// Display a message box to the user
19
vscode.window.showInformationMessage('Hello World from test-multifile-1!');
20
});
21
22
context.subscriptions.push(disposable);
23
}
24
25
// This method is called when your extension is deactivated
26
export function deactivate() { }
27
28