VSCode键盘绑定到仅关闭窗口,但如果最后一个窗口则关闭应用程序

对于Mac上的VSCode,我希望同时使用cmdq快捷方式:

  1. Close one window at a time (the default behaviour is to close all of them and quit the app)
  2. Quit the app if last window closed (rewiring cmd+q shortcut to workbench.action.closeWindow prevents this)

我必须具有什么键盘配置?

目前我只有

{
    "key": "cmd+q",
    "command": "workbench.action.closeWindow"
},

但是,如上面#2所述,这会禁用应用程序实际退出。我正在尝试模拟AltF4在Windows上的功能。