diff --git a/ext-src/KanbnBoardPanel.ts b/ext-src/KanbnBoardPanel.ts index 332f863..4abbe7d 100644 --- a/ext-src/KanbnBoardPanel.ts +++ b/ext-src/KanbnBoardPanel.ts @@ -147,7 +147,7 @@ export default class KanbnBoardPanel { // Open a burndown chart case 'kanbn.burndown': // TODO open a burndown chart webview panel - vscode.window.showInformationMessage('opening burndown chart...'); + vscode.window.showErrorMessage('Not implemented yet!'); return; } }, null, this._disposables); diff --git a/ext-src/KanbnTaskPanel.ts b/ext-src/KanbnTaskPanel.ts index 459cc49..770cd5f 100644 --- a/ext-src/KanbnTaskPanel.ts +++ b/ext-src/KanbnTaskPanel.ts @@ -161,7 +161,9 @@ export default class KanbnTaskPanel { KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id; KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column; KanbnTaskPanel.panels[message.panelUuid].update(); - // vscode.window.showInformationMessage(`Created task '${message.taskData.name}'.`); + if (vscode.workspace.getConfiguration('vscode-kanbn').get('showTaskNotifications')) { + vscode.window.showInformationMessage(`Created task '${message.taskData.name}'.`); + } return; // Update a task @@ -170,7 +172,9 @@ export default class KanbnTaskPanel { KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id; KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column; KanbnTaskPanel.panels[message.panelUuid].update(); - // vscode.window.showInformationMessage(`Updated task '${message.taskData.name}'.`); + if (vscode.workspace.getConfiguration('vscode-kanbn').get('showTaskNotifications')) { + vscode.window.showInformationMessage(`Updated task '${message.taskData.name}'.`); + } return; // Delete a task and close the webview panel @@ -181,7 +185,9 @@ export default class KanbnTaskPanel { await this._kanbn.deleteTask(message.taskId, true); KanbnTaskPanel.panels[message.panelUuid].dispose(); delete KanbnTaskPanel.panels[message.panelUuid]; - // vscode.window.showInformationMessage(`Deleted task '${message.taskData.name}'.`); + if (vscode.workspace.getConfiguration('vscode-kanbn').get('showTaskNotifications')) { + vscode.window.showInformationMessage(`Deleted task '${message.taskData.name}'.`); + } } } ); diff --git a/package.json b/package.json index db22834..05a7219 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "default": true, "description": "Show the status bar item in workspaces where Kanbn has not yet been initialised." }, - "vscode-kanbn.showNotifications": { + "vscode-kanbn.showTaskNotifications": { "type": "boolean", "default": true, "description": "Show notifications when a task is created, updated or deleted."