提交 c572cd80 编写于 作者: B Benjamin Pasero

💄

上级 120ba4a1
......@@ -183,10 +183,10 @@ export class FilesConfigurationService extends Disposable implements IFilesConfi
}
async toggleAutoSave(): Promise<void> {
const setting = this.configurationService.inspect('files.autoSave');
const currentSetting = this.configurationService.getValue('files.autoSave');
let newAutoSaveValue: string;
if ([AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE].some(s => s === setting.value)) {
if ([AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE].some(setting => setting === currentSetting)) {
newAutoSaveValue = AutoSaveConfiguration.OFF;
} else {
newAutoSaveValue = AutoSaveConfiguration.AFTER_DELAY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册