-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variables View Loses Expansion State when Stepping #6580
Comments
Changed the title to reflect the problem being described. Yeah, this behaviour is annoying. |
@ParOvBroadcom Is it still actual? |
It could be timing issue, we debounce with 400ms:
@ParOvBroadcom Could you provide more concrete steps? Maybe it is not even reproducible locally (i.e. VS Code does not do a remote call), but with some latency. @ParOvBroadcom Do you run locally? |
@ParOvBroadcom Is there a way to run your debug adapter or reproduce without it? It does not seem to happen with other. |
@akosyakov What do you mean without "it"? This happens in Theia, but not in VScode. |
We need a debugger to reproduce the issue, |
I increase debounce and it makes things better. @tolusha, unfortunately, we can't provide our debugger. |
@ishche How much do you need to increase? |
@akosyakov |
To me it seems we need to disassociate the expansion state of a particular stack frame (or whole stack) from the variables view: when we switch between active stack frames (be it by stepping or by selecting a different thread), we want to restore the expansion state we had before. Since the tree contents are switched out, the tree cannot hold that state. This state should not be located in the "domain model", but in a separate "presentation model" that has a policy on how many variable expansion states to remember (maybe a fixed LRU or something similar). |
Description
When using the resume, step next or step in functions, the scope tree in the Variables view refreshes completely in Theia, this leads to a collapsed tree, while the tree in VSC remains to the previous state and leaves any expanded part as it is, by just refreshing whatever needs to. Is there a way to do the same in Theia?
Reproduction Steps
Start a debug session using DAP through Theia. When stopped in a specific breakpoint expand the scope and maybe some of the variables. Resume or step in or step over to the next breakpoint. The variable tree is completely disappearing and reappearing (really fast) and thus it is collapsed to the original scope only
Windows 10 and Theia version: 0.11.0
Diagnostics:
No diagnostics
The text was updated successfully, but these errors were encountered: