diff --git a/src/vs/workbench/electron-main/windows.ts b/src/vs/workbench/electron-main/windows.ts index 67a5d401b5b88f9888b489aab1681ea470ee3baf..626e61a999b78e64e7f87985388bb06b79c6a51f 100644 --- a/src/vs/workbench/electron-main/windows.ts +++ b/src/vs/workbench/electron-main/windows.ts @@ -356,9 +356,7 @@ export class WindowsManager { // We found a closing '}' and the JSON does not contain errors if (lastClosing > 0 && !errors.length) { - const hasOtherKeys = Object.getOwnPropertyNames(res).length > 0; - - const migratedSettings = settingsRaw.substring(0, lastClosing) + '\n // Migrated from previous File | Auto Save setting:\n' + (hasOtherKeys ? ' , "files.autoSaveDelay": 1\n' : ' "files.autoSaveDelay": 1\n') + '}'; + const migratedSettings = settingsRaw.substring(0, lastClosing) + '\n , // Migrated from previous File | Auto Save setting:\n "files.autoSaveDelay": 1\n}'; fs.writeFileSync(env.appSettingsPath, migratedSettings); }