[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

@@ -173,6 +173,20 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
public bool SourceCodeStickyScroll
{
get => _peekPreviewSettings.SourceCodeStickyScroll.Value;
set
{
if (_peekPreviewSettings.SourceCodeStickyScroll.Value != value)
{
_peekPreviewSettings.SourceCodeStickyScroll.Value = value;
OnPropertyChanged(nameof(SourceCodeStickyScroll));
SavePreviewSettings();
}
}
}
private void NotifySettingsChanged()
{
// Using InvariantCulture as this is an IPC message