mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 04:38:24 -06:00
As @lhecker noted in the #16172 review, `UpdateTerminalSettings` is wacky. We can just pass the cache in at the start, then reset it and reuse it in `UpdateSettings`. One fewer `try_as`!
14 lines
571 B
Plaintext
14 lines
571 B
Plaintext
import "AppKeyBindings.idl";
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
namespace TerminalApp
|
|
{
|
|
[default_interface] runtimeclass TerminalSettingsCache
|
|
{
|
|
TerminalSettingsCache(Microsoft.Terminal.Settings.Model.CascadiaSettings settings, AppKeyBindings bindings);
|
|
Microsoft.Terminal.Settings.Model.TerminalSettingsCreateResult TryLookup(Microsoft.Terminal.Settings.Model.Profile profile);
|
|
void Reset(Microsoft.Terminal.Settings.Model.CascadiaSettings settings, AppKeyBindings bindings);
|
|
}
|
|
}
|