23 lines
658 B
TypeScript
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() {}
|