From be381e8cf976ca737eb9ae45d0aa0fc9e69b41ff Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 24 Jan 2026 19:43:29 +0100 Subject: [PATCH] Moved `ShortcutValidationResult` to a dedicated file. --- .../Tools/Rust/ShortcutValidationResult.cs | 10 ++++++++++ .../Tools/Services/RustService.Shortcuts.cs | 11 +---------- 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs diff --git a/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs b/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs new file mode 100644 index 00000000..7b482276 --- /dev/null +++ b/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs @@ -0,0 +1,10 @@ +namespace AIStudio.Tools.Rust; + +/// +/// Result of validating a keyboard shortcut. +/// +/// Whether the shortcut syntax is valid. +/// Error message if not valid. +/// Whether the shortcut conflicts with another registered shortcut. +/// Description of the conflict, if any. +public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription); \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs b/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs index 156f9d2b..69c2b41d 100644 --- a/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs +++ b/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs @@ -137,13 +137,4 @@ public sealed partial class RustService return false; } } -} - -/// -/// Result of validating a keyboard shortcut. -/// -/// Whether the shortcut syntax is valid. -/// Error message if not valid. -/// Whether the shortcut conflicts with another registered shortcut. -/// Description of the conflict, if any. -public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription); +} \ No newline at end of file