Skip to content

Commit 6d60183

Browse files
committed
tdb: fix autoexpansion of current context
This was broken by a trunk change to PluggableTreeMorph in spring.
1 parent 9253fa8 commit 6d60183

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

packages/TraceDebugger.package/TraceDebugger.class/instance/doStep..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ doStep: aBlock
99

1010
interruptedContext := self interruptedContext.
1111
interruptedTimeIndex := self cursor timeIndex.
12-
self selectContext: interruptedContext.
12+
self selectAndExpandContext: interruptedContext.
1313
(self selectedContext tdbIdentical: interruptedContext) ifFalse:
1414
[self flag: #coroutines. "Selection 'did not work'! The new context path may no longer contain the interrupted context at the expected position from the trace. Select it again without updating the context path."
1515
self cursor timeIndex: interruptedTimeIndex.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
accessing - toolbuilder
22
notifierSelectContext: aContext
33

4-
self selectContext: aContext.
4+
self selectAndExpandContext: aContext.
55
self debug.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
accessing - context
2+
selectAndExpandContext: aContext
3+
4+
self cacheSourcesDuring:
5+
[self selectContext: aContext.
6+
self changed: #(openPath) , (self treeSelectedContextPath collect: [:context | context asString])].

packages/TraceDebugger.package/TraceDebugger.class/methodProperties.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"doItContext" : "ct 3/15/2022 17:49",
142142
"doItReceiver" : "ct 3/15/2022 17:26",
143143
"doSelfUpdate" : "ct 3/12/2022 18:02",
144-
"doStep:" : "ct 3/15/2022 18:06",
144+
"doStep:" : "ct 12/29/2023 01:15",
145145
"doStepBackward:" : "ct 1/26/2022 18:47",
146146
"doStepForward:" : "ct 1/26/2022 18:47",
147147
"dragContext:" : "ct 3/15/2022 20:50",
@@ -196,7 +196,7 @@
196196
"nextFindSignature" : "ct 2/3/2022 16:39",
197197
"nextFindSignature:" : "ct 2/3/2022 16:39",
198198
"notifierButtonSpecs" : "ct 12/28/2023 21:35",
199-
"notifierSelectContext:" : "ct 1/26/2022 20:16",
199+
"notifierSelectContext:" : "ct 12/29/2023 01:15",
200200
"notifierStackSize" : "ct 1/26/2022 20:31",
201201
"open" : "ct 11/20/2021 15:34",
202202
"openFull:label:" : "ct 3/19/2022 20:14",
@@ -214,6 +214,7 @@
214214
"restart" : "ct 1/8/2022 01:26",
215215
"rootContexts" : "ct 1/25/2022 20:02",
216216
"runToSelection:" : "ct 2/17/2022 19:10",
217+
"selectAndExpandContext:" : "ct 12/29/2023 01:16",
217218
"selectContext:" : "ct 2/12/2022 21:25",
218219
"selectedContext" : "ct 11/20/2021 22:20",
219220
"selectedContextPath" : "ct 1/26/2022 17:06",

0 commit comments

Comments
 (0)