Pretter for each ts file

This commit is contained in:
Pine Wu
2018-10-10 09:37:51 -07:00
parent c945fe9288
commit 23674b2cfe
55 changed files with 1755 additions and 1479 deletions

View File

@ -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);
}

View File

@ -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;
}