We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fafc3a + ca11030 commit b9c62a3Copy full SHA for b9c62a3
src/PowerShellEditorServices/Debugging/VariableDetails.cs
@@ -130,9 +130,10 @@ private static bool GetIsExpandable(object valueObject)
130
return
131
valueObject != null &&
132
!valueType.IsPrimitive &&
133
+ !valueType.IsEnum && // Enums don't have any properties
134
+ !(valueObject is string) && // Strings get treated as IEnumerables
135
!(valueObject is decimal) &&
- !(valueObject is UnableToRetrievePropertyMessage) &&
- !(valueObject is string); // Strings get treated as IEnumerables
136
+ !(valueObject is UnableToRetrievePropertyMessage);
137
}
138
139
private static string GetValueString(object value, bool isExpandable)
0 commit comments