csharpdeeb25a2 | 1 | namespace CascadeIDE.Services; |
| 2 | |
| 3 | /// <summary>Состояние редактора для MCP (ide_get_editor_state).</summary> |
| 4 | public sealed class EditorStateDto |
| 5 | { |
| 6 | public string? FilePath { get; init; } |
| 7 | public int CaretLine { get; init; } |
| 8 | public int CaretColumn { get; init; } |
| 9 | public int SelectionStart { get; init; } |
| 10 | public int SelectionLength { get; init; } |
| 11 | public string SelectionText { get; init; } = ""; |
| 12 | /// <summary>Длина текста в редакторе (0 если пусто).</summary> |
| 13 | public int ContentLength { get; init; } |
| 14 | /// <summary>True, если в редакторе нет текста.</summary> |
| 15 | public bool IsEmpty { get; init; } |
| 16 | /// <summary>Первые N символов (если запрошен max_preview_chars).</summary> |
| 17 | public string? ContentPreview { get; init; } |
| 18 | } |
| 19 | |
View only · write via MCP/CIDE