Add configuration options to show or hide task notifications
This commit is contained in:
parent
9c9155e18e
commit
14b512bb12
@ -147,7 +147,7 @@ export default class KanbnBoardPanel {
|
|||||||
// Open a burndown chart
|
// Open a burndown chart
|
||||||
case 'kanbn.burndown':
|
case 'kanbn.burndown':
|
||||||
// TODO open a burndown chart webview panel
|
// TODO open a burndown chart webview panel
|
||||||
vscode.window.showInformationMessage('opening burndown chart...');
|
vscode.window.showErrorMessage('Not implemented yet!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, null, this._disposables);
|
}, null, this._disposables);
|
||||||
|
@ -161,7 +161,9 @@ export default class KanbnTaskPanel {
|
|||||||
KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id;
|
KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id;
|
||||||
KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column;
|
KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column;
|
||||||
KanbnTaskPanel.panels[message.panelUuid].update();
|
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;
|
return;
|
||||||
|
|
||||||
// Update a task
|
// Update a task
|
||||||
@ -170,7 +172,9 @@ export default class KanbnTaskPanel {
|
|||||||
KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id;
|
KanbnTaskPanel.panels[message.panelUuid]._taskId = message.taskData.id;
|
||||||
KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column;
|
KanbnTaskPanel.panels[message.panelUuid]._columnName = message.taskData.column;
|
||||||
KanbnTaskPanel.panels[message.panelUuid].update();
|
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;
|
return;
|
||||||
|
|
||||||
// Delete a task and close the webview panel
|
// Delete a task and close the webview panel
|
||||||
@ -181,7 +185,9 @@ export default class KanbnTaskPanel {
|
|||||||
await this._kanbn.deleteTask(message.taskId, true);
|
await this._kanbn.deleteTask(message.taskId, true);
|
||||||
KanbnTaskPanel.panels[message.panelUuid].dispose();
|
KanbnTaskPanel.panels[message.panelUuid].dispose();
|
||||||
delete KanbnTaskPanel.panels[message.panelUuid];
|
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}'.`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"description": "Show the status bar item in workspaces where Kanbn has not yet been initialised."
|
"description": "Show the status bar item in workspaces where Kanbn has not yet been initialised."
|
||||||
},
|
},
|
||||||
"vscode-kanbn.showNotifications": {
|
"vscode-kanbn.showTaskNotifications": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"description": "Show notifications when a task is created, updated or deleted."
|
"description": "Show notifications when a task is created, updated or deleted."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user