| 1 | #nullable enable |
| 2 | |
| 3 | namespace CascadeIDE.Features.Chat; |
| 4 | |
| 5 | public readonly record struct SlashCommandPreviewResult( |
| 6 | string? Text, |
| 7 | SlashCommandPreviewKind Kind) |
| 8 | { |
| 9 | public static SlashCommandPreviewResult Empty { get; } = new(null, SlashCommandPreviewKind.None); |
| 10 | |
| 11 | public bool HasText => !string.IsNullOrWhiteSpace(Text); |
| 12 | } |
| 13 |