Skip to content

Support context menu action contributions for debug viewlet views #15657

Closed

Description

Support context menu action contributions for debug viewlet views.

Activity

  1. added
    debug
    on Nov 17, 2016
  2. added
    feature-request
    on Nov 17, 2016
  3. isidorn commented on Nov 17, 2016

    @isidorn
  4. isidorn commented on Nov 29, 2016

    @isidorn

    fyi roblourens now we support for extensions to contribute context menu items for debug views. For the moment we only support it for the call stack view but this can easily change

    From your extension under package.json you can as before contribute "menus", but we introduced a new context called "debug/callstack/context". Under there you can specify a custom command which you want to be added to the debug callstack context menu.
    Once executed the command gets the stackFrame internal uri as an argument from which the extension should be able to identify the stack frame.

    Try to connect all the dots and if you have issues I can implement this tomorrow in the mock debugger as a template.

    Andre Weinand (@weinand) it would be cool if you implemented restart frame using a similar approach and we get rid of the capability

  5. roblourens commented on Nov 29, 2016

    @roblourens
    Member

    Sure, for blackbox scripts this was going to be for next milestone though right? Since we need to communicate between the extension host and debug adapter.

  6. weinand commented on Nov 29, 2016

    @weinand
    ContributorAuthor

    roblourens yes, we will not ship the skipFiles UI for this milestone. But we can experiment with the necessary implementation details...

    Isidor Nikolic (@isidorn) Yes, if we have a richer debug model available to extensions, and if we can communicate to the debug adapter from an extension, it would be possible to implement "Restart Frame" in an extension.

    However, we will not do this for these reasons:

    • we cannot remove existing debug UI because it will cripple existing extensions.
    • if we would move more functionality into the extension (as private features), we would make it harder for other frontends (e.g. VS) to support this functionality.
  7. cmrigney commented on Nov 30, 2016

    @cmrigney

    Isidor Nikolic (@isidorn) I would like to implement an extension that runs alongside the "Native Debug" extension that would allow the user to right click on a variable in the debug view for a context menu with a custom button. In my application, the custom button would be "View Image" for an OpenCV Mat C++ object, so I would need the variable info passed along to the context menu action (and possibly be able to hide the button in case it's not a Mat object) so I can use that to draw in an HTML preview window. Will this be available to extensions?

  8. weinand commented on Nov 30, 2016

    @weinand
    ContributorAuthor

    Cody Rigney (@cmrigney) yes, we are planning to support this scenario. But we still have to design the debug object model that needs to be surfaced when passing the selection (e.g. the variable) to the context menu action.

  9. cmrigney commented on Nov 30, 2016

    @cmrigney

    Andre Weinand (@weinand) Great thanks. Any idea if this will be in the next release?

  10. weinand commented on Nov 30, 2016

    @weinand
    ContributorAuthor

    Cody Rigney (@cmrigney) not in the November release, but in the following.

  11. weinand commented on Dec 1, 2016

    @weinand
    ContributorAuthor

    Johannes Rieken (@jrieken) thanks for the doc pointer. We will update as soon as these APIs become official.

  12. weinand commented on Dec 5, 2016

    @weinand
    ContributorAuthor

    This was exploratory work for November. Will be tested in January milestone.

  13. CangHaiQingYue commented on Sep 27, 2017

    @CangHaiQingYue

    How to configure opencv? Is there have any link?

  14. cmrigney commented on Sep 27, 2017

    @cmrigney

    CangHaiQingYue I'm no longer working with OpenCV, so I didn't develop any extension for it. Not sure if anyone else did.

  15. CangHaiQingYue commented on Oct 11, 2017

    @CangHaiQingYue
  16. locked and limited conversation to collaborators on Nov 17, 2017
  17. added a commit that references this issue on Sep 6, 2026
    804c339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions