mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[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:
committed by
GitHub
parent
af5293cfb4
commit
05249ac432
@@ -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()
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user