[PreviewPane][Monaco]Format json/xml before rendering (#19980)

This commit is contained in:
Davide Giacometti
2022-08-24 13:08:10 +02:00
committed by GitHub
parent e7d3aadec3
commit 16c7a22410
10 changed files with 198 additions and 11 deletions

View File

@@ -99,6 +99,23 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
}
private bool monacoPreviewTryFormat;
[JsonPropertyName("monaco-previewer-toggle-try-format")]
[JsonConverter(typeof(BoolPropertyJsonConverter))]
public bool MonacoPreviewTryFormat
{
get => monacoPreviewTryFormat;
set
{
if (value != monacoPreviewTryFormat)
{
LogTelemetryEvent(value);
monacoPreviewTryFormat = value;
}
}
}
private bool enablePdfPreview;
[JsonPropertyName("pdf-previewer-toggle-setting")]