[DevFiles]Update Monaco dependency to 0.47, new sticky scroll setting (#32410)

* Update Monaco dependency to 0.47

* Add setting to enable/disable it and add Peek support

* Fix Xaml styling
This commit is contained in:
Aaron Junker-Wildi
2024-04-19 15:09:46 +02:00
committed by GitHub
parent af5293cfb4
commit 05249ac432
128 changed files with 832 additions and 874 deletions

View File

@@ -16,10 +16,13 @@ namespace Settings.UI.Library
public BoolProperty SourceCodeTryFormat { get; set; }
public BoolProperty SourceCodeStickyScroll { get; set; }
public PeekPreviewSettings()
{
SourceCodeWrapText = new BoolProperty(false);
SourceCodeTryFormat = new BoolProperty(false);
SourceCodeStickyScroll = new BoolProperty(true);
}
public string ToJsonString()

View File

@@ -133,6 +133,23 @@ namespace Microsoft.PowerToys.Settings.UI.Library
[JsonPropertyName("monaco-previewer-max-file-size")]
public IntProperty MonacoPreviewMaxFileSize { get; set; }
private bool monacoPreviewStickyScroll = true;
[JsonPropertyName("monaco-previewer-sticky-scroll")]
[JsonConverter(typeof(BoolPropertyJsonConverter))]
public bool MonacoPreviewStickyScroll
{
get => monacoPreviewStickyScroll;
set
{
if (value != monacoPreviewStickyScroll)
{
LogTelemetryEvent(value);
monacoPreviewStickyScroll = value;
}
}
}
private bool enablePdfPreview;
[JsonPropertyName("pdf-previewer-toggle-setting")]