Skip to content

Commit

Permalink
Merge pull request Azure#6077 from cormacpayne/context-autosave-fix
Browse files Browse the repository at this point in the history
Fix issue where context autosave isn't enabled by default
  • Loading branch information
markcowl authored May 1, 2018
2 parents d512e5c + 822eb57 commit a2c757d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@ static ContextAutosaveSettings InitializeSessionSettings(IDataStore store, strin
store.CreateDirectory(directoryPath);
}
string autoSavePath = Path.Combine(profileDirectory, settingsFile);
store.WriteFile(autoSavePath, JsonConvert.SerializeObject(result));
result.Mode = ContextSaveMode.CurrentUser;
store.WriteFile(autoSavePath, JsonConvert.SerializeObject(result));
}
}
catch
{
// ignore exceptions in reading settings from disk
result.Mode = ContextSaveMode.Process;
}

return result;
Expand Down

0 comments on commit a2c757d

Please sign in to comment.