-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Support DAP's ValueFormat for formatting values in variables list #148125
Comments
@weinand I'm trying to decide whether it's worth doing something custom to support this for now, but I don't want to do so if a standard way might not be far off. I noticed this was assigned to On Deck. Do you think it's something that might happen in the near-term? I won't hold you to it, it'll just help me plan 😄 Thanks! |
@weinand I was looking to see if there's a way I could handle this in my extension for now (backed by a simple setting) until VS Code has support. In #134452 (comment) you mentioned using a However, the docs for |
Yeah, it's not spelled out in the API. The vscode.d.ts says that your tracker factory returns
I think this just means it doesn't let you send entirely new messages, but you are able to modify messages. The implementation allows this and we've used it in the past, one example is here https://github.com/microsoft/vscode-nodebook/blob/8ba0d512482c56d08833fd22fe726ca46ea5e7e7/src/nodeKernel.ts#L99 |
Could this be updated to be more explicit? Sometimes functionality that isn't documented gets changed and it's more difficult to argue it should be fixed if it was never documented :-) |
I had a feature request to show Variables in hex format. I found
supportsValueFormattingOptions
/valueFormat
but it seems that VS Code does not currently support it (see #28025 (comment)).The recommendation in Nov 2020 was for debug extensions to implement a context menu entry to handle this:
#28025 (comment)
However, this is not an ideal solution because (if I understand correctly) it needs work both in the VS Code extension and in the DAP Server, including some custom way for the VS Code extension to pass this setting to the DAP Server (in some non-standard, VS-Code-extension-specific way).
It would be much better if VS Code had built-in UI for this and supported
supportsValueFormattingOptions
/valueFormat
. In Mar 2021 atsupportsValueFormattingOptions
/valueFormat
, @weinand said:So it seems like there may be a plan to move to this, but as far as I can tell there is no existing issue tracking/discussing it.
The text was updated successfully, but these errors were encountered: