mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PreviewPane][Monaco]Format json/xml before rendering (#19980)
This commit is contained in:
committed by
GitHub
parent
e7d3aadec3
commit
16c7a22410
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user