Skip to content

Revert commits related to modernization of code#1999

Merged
patriksvensson merged 1 commit intospectreconsole:mainfrom
patriksvensson:feature/revert
Jan 8, 2026
Merged

Revert commits related to modernization of code#1999
patriksvensson merged 1 commit intospectreconsole:mainfrom
patriksvensson:feature/revert

Conversation

@patriksvensson
Copy link
Copy Markdown
Contributor

  • Revert f6e1368: "Fixes problems with extension blocks and params keyword"
  • Revert 7965168: "Add modernization commit to .git-blame-ignore-revs"
  • Revert 3f57df5: "Modernization of the code base"

* Revert f6e1368: "Fixes problems with extension blocks and params keyword"
* Revert 7965168: "Add modernization commit to .git-blame-ignore-revs"
* Revert 3f57df5: "Modernization of the code base"
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request reverts three commits that attempted to modernize the codebase. The changes primarily involve:

  1. Reverting the use of C# "extension blocks" (an experimental/proposed feature using extension() syntax) back to traditional static extension methods
  2. Moving extension methods from inline definitions within class files to separate dedicated extension files
  3. Replacing ArgumentNullException.ThrowIfNull() calls with traditional if (x is null) { throw new ArgumentNullException(nameof(x)); } patterns
  4. Removing a polyfill reference from the project file

Reviewed changes

Copilot reviewed 201 out of 201 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
TreeNode.cs, Tree.cs, TextPath.cs, etc. Removed extension blocks that were embedded within class files
TreeNodeExtensions.cs, TreeExtensions.cs, TextPathExtensions.cs, etc. Added separate extension method files with traditional static extension method syntax
Table.cs, Paragraph.cs, Grid.cs, etc. Reverted ArgumentNullException.ThrowIfNull() to traditional null checks
Spectre.Console.csproj Removed polyfill reference
StringUriExtensions.cs, CharExtensions.cs, TextWriterExtensions.cs New utility extension files added
ExceptionFormatter.cs Reverted extension block to traditional static method
MultiSelectionPrompt.cs Minor formatting changes (line breaks)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@patriksvensson patriksvensson merged commit 9ac41ec into spectreconsole:main Jan 8, 2026
9 checks passed
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.

2 participants