mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 12:41:37 +00:00
Moved ShortcutValidationResult to a dedicated file.
This commit is contained in:
parent
c5c83e8525
commit
be381e8cf9
@ -0,0 +1,10 @@
|
|||||||
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Result of validating a keyboard shortcut.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="IsValid">Whether the shortcut syntax is valid.</param>
|
||||||
|
/// <param name="ErrorMessage">Error message if not valid.</param>
|
||||||
|
/// <param name="HasConflict">Whether the shortcut conflicts with another registered shortcut.</param>
|
||||||
|
/// <param name="ConflictDescription">Description of the conflict, if any.</param>
|
||||||
|
public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription);
|
||||||
@ -137,13 +137,4 @@ public sealed partial class RustService
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Result of validating a keyboard shortcut.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="IsValid">Whether the shortcut syntax is valid.</param>
|
|
||||||
/// <param name="ErrorMessage">Error message if not valid.</param>
|
|
||||||
/// <param name="HasConflict">Whether the shortcut conflicts with another registered shortcut.</param>
|
|
||||||
/// <param name="ConflictDescription">Description of the conflict, if any.</param>
|
|
||||||
public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription);
|
|
||||||
Loading…
Reference in New Issue
Block a user