Skip to content

Fixes #580. Mark Terminal.Gui.TextView as [Obsolete] in favor of gui-cs/Editor#5306

Merged
tig merged 2 commits into
developfrom
copilot/mark-textview-as-obsolete
May 13, 2026
Merged

Fixes #580. Mark Terminal.Gui.TextView as [Obsolete] in favor of gui-cs/Editor#5306
tig merged 2 commits into
developfrom
copilot/mark-textview-as-obsolete

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

Fixes

Proposed Changes/Todos

Adds soft [Obsolete(error: false)] to TextView and types that only exist in a TextView context, steering consumers toward gui-cs/Editor.

Marked obsolete:

  • TextView — with message listing Editor's advantages (rope-backed document, multi-caret, syntax highlighting, etc.)
  • TextViewAutocomplete — only meaningful with TextView
  • ContentsChangedEventArgs — only used by TextView.ContentsChanged

Not marked obsolete (intentionally):

  • TextModel, WordWrapManager, HistoryTextinternal, invisible to consumers
  • HistoryTextItemEventArgs, TextEditingLineStatus — shared with TextField
[Obsolete ("TextView is superseded by gui-cs/Editor's EditorView, which provides a rope-backed document model, "
           + "cell-aware rendering, multi-caret editing, undo, syntax highlighting, folding, find/replace, and soft wrap. "
           + "See https://github.com/gui-cs/Editor for details.", error: false)]
public partial class TextView : View, IDesignable { ... }

Pull Request checklist:

  • I've named my PR in the form of "Fixes #issue. Terse description."
  • My code follows the style guidelines of Terminal.Gui - if you use Visual Studio, hit CTRL-K-D to automatically reformat your files before committing.
  • My code follows the Terminal.Gui library design guidelines
  • I ran dotnet test before commit
  • I have made corresponding changes to the API documentation (using /// style comments)
  • My changes generate no new warnings
  • I have checked my code and corrected any poor grammar or misspellings
  • I conducted basic QA to assure all features are working

…[Obsolete] in favor of gui-cs/Editor

Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/7a6d1272-907c-45e4-9c71-dbad30d2f4c3

Co-authored-by: tig <585482+tig@users.noreply.github.com>
Copilot AI changed the title [WIP] Mark Terminal.Gui.TextView as obsolete in favor of gui-cs/Editor Fixes #580. Mark Terminal.Gui.TextView as [Obsolete] in favor of gui-cs/Editor May 13, 2026
Copilot finished work on behalf of tig May 13, 2026 14:42
Copilot AI requested a review from tig May 13, 2026 14:42
@tig tig marked this pull request as ready for review May 13, 2026 14:50
@tig tig merged commit 87cd7db into develop May 13, 2026
13 checks passed
@tig tig deleted the copilot/mark-textview-as-obsolete branch May 13, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark Terminal.Gui.TextView as [Obsolete] in favor of gui-cs/Editor

5 participants