Index: runtime/observatory/lib/src/elements/instance_view.dart |
diff --git a/runtime/observatory/lib/src/elements/instance_view.dart b/runtime/observatory/lib/src/elements/instance_view.dart |
index 96a3b746ceb3b74bf89921d54cb15e1ca44b4800..dda1cc5210d8a42ad6bc6bc2ce71a0b2edfb481b 100644 |
--- a/runtime/observatory/lib/src/elements/instance_view.dart |
+++ b/runtime/observatory/lib/src/elements/instance_view.dart |
@@ -15,6 +15,19 @@ class InstanceViewElement extends ObservatoryElement { |
InstanceViewElement.created() : super.created(); |
+ instanceChanged(oldValue) { |
+ if (instance != null) { |
+ // We load typeClass and typeArguments because we want to |
+ // display this info. |
+ if (instance.typeClass != null) { |
+ instance.typeClass.load(); |
+ } |
+ if (instance.typeArguments != null) { |
+ instance.typeArguments.load(); |
+ } |
+ } |
+ } |
+ |
Future<ServiceObject> evaluate(String expression) { |
return instance.evaluate(expression); |
} |