refactor: Use raw string for default settings content

json-serializing-nullable-fields-issue
Robert Dailey 9 months ago
parent 778abe96dc
commit 1411eb69bc

@ -50,11 +50,13 @@ public class SettingsProvider : ISettingsProvider
private IFileInfo CreateDefaultSettingsFile() private IFileInfo CreateDefaultSettingsFile()
{ {
const string fileData = const string fileData =
"# yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/settings-schema.json\n" + """
"\n" + # yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/settings-schema.json
"# Edit this file to customize the behavior of Recyclarr beyond its defaults\n" +
"# For the settings file reference guide, visit the link to the wiki below:\n" + # Edit this file to customize the behavior of Recyclarr beyond its defaults
"# https://recyclarr.dev/wiki/yaml/settings-reference/\n"; # For the settings file reference guide, visit the link to the wiki below:
# https://recyclarr.dev/wiki/yaml/settings-reference/
""";
var settingsFile = _paths.AppDataDirectory.File("settings.yml"); var settingsFile = _paths.AppDataDirectory.File("settings.yml");
settingsFile.CreateParentDirectory(); settingsFile.CreateParentDirectory();

Loading…
Cancel
Save