mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
20 lines
633 B
TypeScript
20 lines
633 B
TypeScript
/*---------------------------------------------------------
|
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
*--------------------------------------------------------*/
|
|
|
|
import * as vscode from 'vscode';
|
|
import { add } from './math';
|
|
|
|
export function activate(context: vscode.ExtensionContext) {
|
|
|
|
console.log('Congratulations, your extension "esbuild-sample" is now active!');
|
|
|
|
const disposable = vscode.commands.registerCommand('esbuild-sample.hello-esbuild', () => {
|
|
vscode.window.showInformationMessage(`41 + 1 = ${add(41, 1)}`);
|
|
});
|
|
|
|
context.subscriptions.push(disposable);
|
|
}
|
|
|
|
export function deactivate() { }
|