-
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
Can't update the presentationHint of a Source during a debug session #42139
Comments
@roblourens please let me know if my fix solves this issue. |
That should work for my adapter, and I think it makes sense. I don't know if anyone else is depending on vscode caching some Source properties. But I guess they shouldn't be. |
After toggling a stackframe for the first time it correctly updates to a dimmed presentation. |
Strange, because I take the priority of the incoming source object. |
@weinand good catch. This was not working because I was merging whatever was coming in with what I already had. And when you toggle back the source to be shown it does not have any |
Yeah, but after you invoke it again module.js should no longer be dimmed |
@isidorn yeah that is what I saw |
Looking at the code, it seems like the Source is cached by id, and the presentationHint is never updated, even if the debug adapter sends a Source with a different presentationHint. This must have changed at some point.
The text was updated successfully, but these errors were encountered: