Skip to content

Commit acfea9a

Browse files
author
David Karlaš
committed
part of Bug 48677 - [Expression Evaluator] "Show Value" isn't clickable
1 parent eacbfe1 commit acfea9a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Mono.Debugging/Mono.Debugging.Client/ObjectValue.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ public static ObjectValue CreateError (IObjectValueSource source, ObjectPath pat
154154

155155
public static ObjectValue CreateImplicitNotSupported (IObjectValueSource source, ObjectPath path, string typeName, ObjectValueFlags flags)
156156
{
157-
return CreateNotSupported (source, path, typeName, "Implicit evaluation is disabled", flags);
157+
var val = Create (source, path, typeName);
158+
val.flags = flags | ObjectValueFlags.ImplicitNotSupported;
159+
val.value = "Implicit evaluation is disabled";
160+
return val;
158161
}
159162

160163
public static ObjectValue CreateNotSupported (IObjectValueSource source, ObjectPath path, string typeName, string message, ObjectValueFlags flags)
@@ -681,19 +684,23 @@ public bool IsPrimitive {
681684
public bool IsUnknown {
682685
get { return HasFlag (ObjectValueFlags.Unknown); }
683686
}
684-
687+
685688
public bool IsNotSupported {
686689
get { return HasFlag (ObjectValueFlags.NotSupported); }
687690
}
691+
692+
public bool IsImplicitNotSupported {
693+
get { return HasFlag (ObjectValueFlags.ImplicitNotSupported); }
694+
}
688695

689696
public bool IsError {
690697
get { return HasFlag (ObjectValueFlags.Error); }
691698
}
692-
699+
693700
public bool IsEvaluating {
694701
get { return HasFlag (ObjectValueFlags.Evaluating); }
695702
}
696-
703+
697704
public bool IsEvaluatingGroup {
698705
get { return HasFlag (ObjectValueFlags.EvaluatingGroup); }
699706
}

Mono.Debugging/Mono.Debugging.Client/ObjectValueFlags.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public enum ObjectValueFlags: uint {
3939
Error = 1 << 4, // The expression evaluation returned an error
4040
NotSupported = 1 << 5, // The expression is valid but its evaluation is not supported
4141
Evaluating = 1 << 6, // The expression is being evaluated. The value will be updated when done.
42+
ImplicitNotSupported = 1 << 7, // The expression is valid but it can't be performed implicitly.
4243
KindMask = 0x000000ff,
4344

4445
Field = 1 << 8,

0 commit comments

Comments
 (0)