Using the latest, released version of VSCode, at the time of this writing (2018-Jan-29; version 1.19.3), I see the following behavior (which is unnecessarily time-consuming, for
I solved this issue by adding following in keybindings.json -
{ "key": "cmd+w", "when": "!editorIsOpen && !multipleEditorGroups", "command": "workbench.action.quit" }
Normally, cmd+w will close the editor window (with checks for unsaved as well), and when no editor window is open, it quits the app.