promt when closing vs code code example
Example 1: vscode Q quit confirm
{
"key": "ctrl+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
}
Example 2: vscode Q quit confirm
{ "key": "cmd+q", "command": "-workbench.action.quit" },
{ "key": "cmd+q cmd+q", "command": "workbench.action.quit" }