Singleton burndown panel

This commit is contained in:
Gordon
2021-04-19 03:37:40 +01:00
parent 9e0d88f69e
commit d417b6ec7f
4 changed files with 55 additions and 65 deletions

View File

@ -110,8 +110,8 @@ export async function activate(context: vscode.ExtensionContext) {
// If kanbn is initialised, view the burndown chart
if (await kanbn.initialised()) {
KanbnBurndownPanel.show(context.extensionPath, vscode.workspace.workspaceFolders[0].uri.fsPath, kanbn);
KanbnBurndownPanel.updateAll();
KanbnBurndownPanel.createOrShow(context.extensionPath, vscode.workspace.workspaceFolders[0].uri.fsPath, kanbn);
KanbnBurndownPanel.update();
} else {
vscode.window.showErrorMessage("You need to initialise Kanbn before viewing the burndown chart.");
}
@ -138,7 +138,7 @@ export async function activate(context: vscode.ExtensionContext) {
fileWatcher.onDidChange(() => {
kanbnStatusBarItem.update();
KanbnBoardPanel.update();
KanbnBurndownPanel.updateAll();
KanbnBurndownPanel.update();
});
}