mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Pretter for each ts file
This commit is contained in:
@ -8,10 +8,9 @@ import * as vscode from 'vscode';
|
||||
import { add } from './math';
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
let disposable = vscode.commands.registerCommand('extension.helloWebpack', () => {
|
||||
vscode.window.showInformationMessage(`41 + 1 = ${add(41, 1)}`);
|
||||
});
|
||||
|
||||
let disposable = vscode.commands.registerCommand('extension.helloWebpack', () => {
|
||||
vscode.window.showInformationMessage(`41 + 1 = ${add(41, 1)}`);
|
||||
});
|
||||
|
||||
context.subscriptions.push(disposable);
|
||||
context.subscriptions.push(disposable);
|
||||
}
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
'use strict';
|
||||
|
||||
export function add(a: number, b: number): number {
|
||||
return a + b;
|
||||
return a + b;
|
||||
}
|
||||
|
||||
export function sub(a: number, b: number): number {
|
||||
return a - b;
|
||||
return a - b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user