You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The defaultDepth to which we expand Ids is low because otherwise the
performance cost is too great and perceivably slow.
However, the user has to iteractively expand the branches of the
representation tree of variables as they want to view them.
We can leverage this interactivity to overcome the limited depth to
which we expand. Simply: when the user expands a variable, always expand
its corresponding Term a little bit more.
Fixes#97
// Force only the 2nd "hello" and check the third is already there.
456
-
// It relies on repeat seemingly only re-using every other thunk?!!?
457
455
// (Mimics reproducer in #11)
458
456
letlocals=awaitfetchLocalVars();
459
457
constxVar=awaitforceLazy(locals.get('x'));
460
458
constxChild=awaitexpandVar(xVar);
461
459
const_2Var=awaitxChild.get('_2');// NOTE: Doesn't need to be forced because of this seemingly weird `repeat` behavior where it looks like every other binding is shared but the others are not
462
460
const_2Child=awaitexpandVar(_2Var);
463
461
const_2_1Var=awaitforceLazy(_2Child.get('_1'));
464
-
const_2_2Var=awaitforceLazy(_2Child.get('_2'));
462
+
const_2_2Var=await_2Child.get('_2');
465
463
const_2_2Child=awaitexpandVar(_2_2Var);
466
464
const_2_2_1Var=await_2_2Child.get('_1')// NOTE: doesn't need to be forced as above
467
465
assertIsString(_2_2_1Var,'"hello"');
@@ -533,6 +531,40 @@ describe("Debug Adapter Tests", function () {
0 commit comments