-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Copy variables not really working well #400
Comments
Related to #917 but does not solve the issue, as currently one one option is possible, not a list of options. Opened an issue with VSCode. |
For reference, the needed feature on VSCode side was not implemented microsoft/vscode#188604 so I can't yet implement this. |
@zobo thanks for looking into this! I saw in the linked issue
And in the referred issue (7 may 2024):
Is that enough to implement it or is more needed? |
No. The linked issue is talking about threads and stacks. This are elements in "CALL STACK" window. I'd need something similar for the "VARIABLES" windows. Only then could I implement extra menu items for all "Copy as ..." variants. I'm going to finish implementing #917 one of this days, that will make a tree traversal when copying a variable with sub nodes and present it like "var_export"... For my reference: I just found https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.debugVisualization.d.ts but that would probably not be a good solution also... Semi unrelated note: Have you seen the new "debug.showVariableTypes" ? |
No i hadn't seen it yet. Reference: https://code.visualstudio.com/updates/v1_92#_show-variable-types-while-debugging |
@ljubadr @cDonut @dracula-property @m10 @sylver @shaneparsons i saw that you upvoted this issue, thanks for that! However it's blocked on this microsoft/vscode#188604 which got closed because not enough upvotes. Perhaps with 20 votes we can ask a mod to reopen this ticket. Please see my first post how to upvote the ticket |
In the "Variables" pane where all the variables are listed in local scope (and a bunch of other scopes), when i have an array there and right click
Copy Value
i getWhen i click
Copy as Expression
i getThese two options are somewhat useful. The "copy as expression" is more useful than "copy as value" though. Instead of just these two options could the following there be the following entries in the right click menu:
Please put upvotes on microsoft/vscode#188604 as it blocks this ticket. See screenshot below on how to do an upvote
The text was updated successfully, but these errors were encountered: