-
Notifications
You must be signed in to change notification settings - Fork 13
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
Interactions with other views #52
Comments
Related microsoft/vscode#200880 |
@jreineckearm Unfortunatley we are hitting the limits of the VS Code API here. Direct contributions to the main menu bar are not allowed. Contributions to the However there are some other options we could explore for entry points to the memory inspector :
Wdyt? Regarding:
|
@tortmayr , my apologies I missed your last comment.
Yes, this would be a good approach to at least have one way to open a new view without the need to go through for example the variables view. May need to engage with the VS Code project itself to enable contributions to the main menus outside the scope of this issue here.
You mean the run control toolbar, right. It may get crowded there if we add buttons for other views as well. Probably not now.
This could work. But may need more opinions than just mine. :-)
Interesting idea. But the editors may not be a good context for that functionality. May however be something for future embedded debug views. Maybe from the built-in disassembly view? But I think that one has at the moment only little contribution points... |
@tortmayr , on second thought: would it be possible to add something to the editor context menu? Maybe even with extra info when right-clicking on a variable that is consumable by the view? Similar to the context menu entry that shows up on suitable variables in the variable window? |
Yes we do. It's currently only enabled when the
Sounds interesting. A "duplicate" option also synergises well with the "freeze" feature. (Duplicate view and freeze one to have both a snapshot and "live memory").
Contributing a button to the title menu of the
Adding to the editor context menu is possible. However scoping this to consumable variables might be tricky. I think the necessary information could only be provided by the underlying LSP.. @martin-fleck-at LSP & Text editor integration more your area of expertise. WDYT? |
Without actually testing it for now, I'd be surprised if you got any useful information out of the context of the text editor context that really helps you determine the variable name and context. It might be possible but definitely not straight-forward. @jreineckearm If you want I can look into this in more detail. |
Oh, my bad. This is available now. It wasn't with earlier versions but only opening the "Memory Inspector" Output window. Ignore this part. I remember now that this was fixed now.
I think that wasn't possible a while ago. But there was an open issue at VS Code. Maybe it is enabled now. If it is, then yes, that would be useful.
@tortmayr , @martin-fleck-at , no need to investigate this now. It would have been a nice to have on top. But can be addressed later if the expected effort is unknown and presumably high. |
Description
It would be useful to add more places to invoke the Memory Inspector for easier discoverability and increased productivity. This could include opening the Memory Inspector from
Register value in variables window, for example to show top of stack stored in a stack pointerNot a must for this task collection. And could also become a more debug adapter specific solution. For example Arm Debugger and Arm Embedded Debugger extensions have a split out register window.Additional information
The text was updated successfully, but these errors were encountered: