-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
"smartStep" skipped frames are not grayed out #65025
Comments
Looking at the code I see no difference in handling these. Since all of them have a Can you please provide a reproducable sample so I can investigate further on my machine? |
Good catch, however I think that is fine. |
At that line in callStackView.ts, |
@roblourens can you provide some reproducable steps so I try to investigte more? |
I see this for all smartStep frames |
@roblourens cool. But do you have an example for which I can easily get into this situation? Asking becuase I do not and I would prefer you give me an example than me setting this up. |
Sure, clone this: https://github.com/roblourens/repro65025 Set BPs on lines 6, 11, and 16. No decoration on the unmapped .js frames when at lines 6 and 11: But they are decorated correctly at 16: And in both cases, the DA is returning basically the same thing,
for all the relevant files. |
@roblourens thanks for this great steps. I can nicely repro. So this issue sort of contradicts with #42139 The problem is that we currently do not allow multiple source objects for the same resource. Only one. As a workaround I suggest that you put the presentation hint of deemphasize on the stack frame when it happens that some parts of the call stack you want to deemphasize and some not - while all of them living in the same file. Would that work for you? |
Is that happening here? I think only the .js is deempasized and the .ts is not. |
Ohhh... that is wrong, this actually exposed that my calculations for the stack frame labels are off by one line in the adapter. |
I don't think there's a valid scenario for these DAs where some parts of a file will be skipped and some parts won't. But to be safe, should I always just set |
For now I would leave it on the source since we actually do not specify in the protocol that a presentationHint on the stack frame can be deemphesized. We might need to change that. |
I'm seeing that frames skipped by smartStep are not grayed out, but frames from skipFiles are. This is in 1.30. The DA is sending the right thing and you can see this info in the tooltip.
Here's an example of DA output (not from the screenshot)
The text was updated successfully, but these errors were encountered: