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
{{ message }}
This repository was archived by the owner on Oct 2, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 2, 2021. It is now read-only.
Something visible will happen when you use the context menu option (I can resend the pause event, so the call stack gets refreshed)
The context menu must be a toggle because of how the API works, so you need to know the initial state
I can add a tag to the left or right side:
The right side might be better since it's the file that's skipped, not the function. But if the frame's Source has a path, then it displays part of the path instead of the source name, so I can't customize it. I guess this is related to #16913. Would it be a breaking change to show the name on the right side, if it's set? Other ideas?
I would start with showing the (skipped) on the right hand side. It belonds next to the file name since the file is skippped and (skipped) is better in a regular than verbatim font.
If that does not work then we can tune it
Instead of showing 'skipped' we could try a font variation that does not clutter the UI that much, e.g. showing the module name dimmed and the hover would explain the reason for this).
I was debugging some async/await code and was thinking about how much nicer this would look if the module name was dimmed on non-sourcemapped frames
Those frames are skipped with smartStep, not skipFiles, but the two should be marked the same in UI. And was also thinking that I could change the smartStep implementation to be based on the blackbox API, for performance.
Even if we are not adding the 'skipFiles' concept to the debug protocol, we could add some abstract attribute to the StackFrame or Source type. roblourens any suggestion how we could name the attribute?
roblourens 'hidden' sounds good. 'dimmed' is too concrete because it is a real visual style.
C++/C# could use 'hidden' to indicate that source is not available.
Activity
roblourens commentedon Jan 6, 2017
Isidor Nikolic (@isidorn) and Andre Weinand (@weinand), I'm thinking about how to show that a file is skipped in the call stack. Useful for a few reasons,
I can add a tag to the left or right side:

The right side might be better since it's the file that's skipped, not the function. But if the frame's Source has a path, then it displays part of the path instead of the source name, so I can't customize it. I guess this is related to #16913. Would it be a breaking change to show the name on the right side, if it's set? Other ideas?
isidorn commentedon Jan 6, 2017
I would start with showing the (skipped) on the right hand side. It belonds next to the file name since the file is skippped and (skipped) is better in a regular than verbatim font.
If that does not work then we can tune it
roblourens commentedon Jan 6, 2017
Sure, so does it make sense to always show the source name when available? Should I open an issue for that?
weinand commentedon Jan 6, 2017
Instead of showing 'skipped' we could try a font variation that does not clutter the UI that much, e.g. showing the module name dimmed and the hover would explain the reason for this).
roblourens commentedon Jan 6, 2017
Then the protocol would have to know about skipFiles?
weinand commentedon Jan 6, 2017
So your approach with the "(skipped)" prefix would just prefix the
nameattribute of the Source object?roblourens commentedon Jan 6, 2017
Yeah (I would really like the font variation though, it's more similar to what other tools do)
roblourens commentedon Jan 6, 2017
I was debugging some async/await code and was thinking about how much nicer this would look if the module name was dimmed on non-sourcemapped frames
Those frames are skipped with smartStep, not skipFiles, but the two should be marked the same in UI. And was also thinking that I could change the smartStep implementation to be based on the blackbox API, for performance.
weinand commentedon Jan 9, 2017
Even if we are not adding the 'skipFiles' concept to the debug protocol, we could add some abstract attribute to the
StackFrameorSourcetype.roblourens any suggestion how we could name the attribute?
roblourens commentedon Jan 9, 2017
hiddenordimmed? Hm, can you think of other situations where this would be useful?weinand commentedon Jan 9, 2017
roblourens 'hidden' sounds good. 'dimmed' is too concrete because it is a real visual style.
C++/C# could use 'hidden' to indicate that source is not available.
roblourens commentedon Jan 9, 2017
I'm trying to think of a good synonym for
deemphasizedsince it's technically more accurate thandimmed.weinand commentedon Jan 10, 2017
roblourens I like 'deemphasize' (and the word seems to exist: http://www.thesaurus.com/browse/de-emphasize but I didn't like any of the listed synonyms).
I've created a protocol change request for this: microsoft/vscode-debugadapter-node#93
weinand commentedon Jan 11, 2017
roblourens I've added a
presentationHintattribute toSourceand a valuedeemphasize. It is available in version 1.16.0-pre.1 of the debug protocol.roblourens commentedon Jan 11, 2017
This looks great! Thanks guys.
Now I will use the same UI for code that was smartStep'd over. I'll use the tag
(smartStep)instead of(skipped).roblourens commentedon Jan 11, 2017
Yes, a stack from async/await with smartStep is infinitely more readable now:
Use 'deemphasize' UI in call stack - fix #150
Use 'deemphasize' UI for smartStep as well -