-
Notifications
You must be signed in to change notification settings - Fork 127
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
Proposal: support autoExpand Scope field #116
Comments
isn't that what |
Not really, but good point they are related. |
Well that's what vimspector does and it's a pretty good experience in my experience. But i don't disagree that having an explicit option is fine, it just means what's the point of |
@puremourning for example VS code uses the Also when searching for Also when to autoExpand, but that we will change with the new flag. |
OK thanks. what should be the behaviour of:
? |
Up to the client to decide. |
"up to the client to decide" is an invitation for server vendors to base their implementation on a specific client. this is a problem in general (LSP is a disaster ni this regard), so ideally we'd include guidance (at least) in the DAP. But like i said, i think this is a reasonable change to the protocol with a little sentence to explain the difference between the 2. |
To avoid the ambiguity we could deprecate |
@connor4312 I like your proposal of an |
Two years later, I don't think I'm a big fan of this proposal any more. We fixed the initial issue in vscode: turned out to just be some buggy logic that didn't keep expansion states very well. I think the choice of whether to expand non-expensive fields is a UI decision best left to (possibly configurable logic in) clients. |
Currently VS Code has a weird heuristic to auto expand the first scope if all the scopes are expanded. This does not work well in all cases as seen in this issue microsoft/vscode#93230
I propose that we introduce an
autoExpand
field in theScope
object such that the debug adapter can control which scopes should be autoExpanded by the UI and which not.The text was updated successfully, but these errors were encountered: