harvest-vscode/src/extension.ts
2020-09-18 10:05:38 -05:00

23 lines
658 B
TypeScript

import * as vscode from 'vscode'
import Logout from './UseCases/Commands/Logout'
import PunchTime from './UseCases/Commands/PunchTime'
import SetUserAuthentication from './UseCases/Commands/SetUserAuthentication'
export function activate(context: vscode.ExtensionContext) {
const statusbar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100)
statusbar.command = 'harvest-vscode.punchTime'
statusbar.text = 'Harvest'
statusbar.show()
const commands: vscode.Disposable[] = [
SetUserAuthentication(context),
Logout(context),
PunchTime(context)
]
context.subscriptions.push(...commands)
}
export function deactivate() {}