web - introduce window.confirmBeforeQuit setting and enable by default

This commit is contained in:
Benjamin Pasero
2020-10-14 15:59:40 +02:00
parent cd89b6a77c
commit 26eefd4b0a
2 changed files with 14 additions and 4 deletions

View File

@@ -401,6 +401,13 @@ import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuratio
'default': 'default',
'scope': ConfigurationScope.APPLICATION,
'markdownDescription': nls.localize('openFoldersInNewWindow', "Controls whether folders should open in a new window or replace the last active window.\nNote that there can still be cases where this setting is ignored (e.g. when using the `--new-window` or `--reuse-window` command line option).")
},
'window.confirmBeforeQuit': {
'type': 'boolean',
'default': isWeb,
'description': nls.localize('confirmBeforeQuitWeb', "Controls whether to ask for confirmation before closing the browser tab or window."),
'scope': ConfigurationScope.APPLICATION,
'included': isWeb
}
}
});