mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
When the C# 14 extension members tree feature is on, the marker
methods inside a static extension container surface as children of
the dedicated ExtensionTreeNode rather than as plain methods on the
outer class. Clicking one was running DecompileMethod, which renders
the lowered static method body, not the source-faithful
`extension(T) { ... }` block the user expects.
Match the WPF behaviour: when MethodTreeNode.Parent is an
ExtensionTreeNode and the active language is C#, dispatch to
CSharpLanguage.DecompileExtension(IMethod) so the whole declaration
emits as it was written. Other languages and non-extension methods
keep the existing DecompileMethod path.
Assisted-by: Claude:claude-opus-4-7:Claude Code
pull/3755/head
1 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue