import * as vscode from "vscode" ; import { RestyaboardUtils , removeTempRestyaboardFile } from "./restyaboard/RestyaboardUtils" ; import { RestyaboardTreeView } from "./restyaboard/restyaboardTreeView" ; import { RestyaboardCard } from "./restyaboard/restyaboardComponents" ; import { RestyaboardItem } from "./restyaboard/RestyaboardItem" ; export function activate ( context ) { const restyaboard = new RestyaboardUtils ( context ) ; const restyaboardTreeView = new RestyaboardTreeView ( restyaboard ) ; vscode . window . registerTreeDataProvider ( "restyaboardTreeView" , restyaboardTreeView ) ; vscode . commands . registerCommand ( "restyaboardViewer.refresh" , ( ) => restyaboardTreeView . refresh ( ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.authenticate" , ( ) => restyaboard . authenticate ( ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.resetCredentials" , ( ) => restyaboard . resetCredentials ( ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.showRestyaboardInfo" , ( ) => restyaboard . showRestyaboardInfo ( ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.setCredentials" , ( ) => restyaboard . setCredentials ( ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.addCard" , ( list ) => restyaboard . addCardToList ( list ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.editCardTitle" , ( card ) => restyaboard . editTitle ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.editCardDescription" , ( card ) => restyaboard . editDescription ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.addComment" , ( card ) => restyaboard . addComment ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.addSelfToCard" , ( card ) => restyaboard . addSelfToCard ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.removeSelfFromCard" , ( card ) => restyaboard . removeSelfFromCard ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.addUserToCard" , ( card ) => restyaboard . addUserToCard ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.removeUserFromCard" , ( card ) => restyaboard . removeUserFromCard ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.moveCardToList" , ( card ) => restyaboard . moveCardToList ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.archiveCard" , ( card ) => restyaboard . archiveCard ( card ) ) ; vscode . commands . registerCommand ( "restyaboardViewer.showCard" , ( card ) => restyaboard . showCard ( card ) ) ; } export function deactivate ( ) { removeTempRestyaboardFile ( ) ; }