Skip to content

Commit

Permalink
Annotate private DebuggerDisplay props as DebuggerBrowsableState.Never (
Browse files Browse the repository at this point in the history
#5656)

It's just noise.
  • Loading branch information
stephentoub authored Nov 18, 2024
1 parent 475f317 commit e0f354a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ public override int GetHashCode() =>
typeof(ChatResponseFormatJson).GetHashCode();

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay => Schema ?? "JSON";
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public RequiredChatToolMode(string? requiredFunctionName)
// Equals/GetHashCode as well, which they likely won't.

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay => $"Required: {RequiredFunctionName ?? "Any"}";

/// <inheritdoc/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public ReadOnlyMemory<byte>? Data
}

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public static FunctionCallContent CreateFromParsedArguments<TEncoding>(
}

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public FunctionResultContent(string callId, string name, object? result)
public Exception? Exception { get; set; }

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ public UsageDetails Details
}

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay => _details.DebuggerDisplay;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class UsageDetails
public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }

/// <summary>Gets a string representing this instance to display in the debugger.</summary>
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal string DebuggerDisplay
{
get
Expand Down

0 comments on commit e0f354a

Please sign in to comment.