Skip to content

Cannot open links in DevTools sidebar panels #5472

Closed

Description

@elliette

Set the DevTools panels to open in the sidebar:

  "dart.devToolsLocation": {
    "default": "sidebar", 
},

In one of the panels in the sidebar, click on one of the links in the footer (e.g. "Read docs")

Expected behavior:

VS Code asks if you want to open the external website, like it does when you click on a link from a DevTools panel when it is not embedded in the sidebar (see screenshot)

Actual behavior:

Nothing happens, can't open the link

Note: I initially discovered this because I was trying to add a footer to the Property Editor that would let users file a bug / open the documentation.

Image

Activity

  1. muhammadkamel commented on Apr 2, 2025

    @muhammadkamel

    Sometimes, the DevTools Sidebar (Toggle Widget button) is not clickable and does not respond.

    @DanTup

  2. DanTup commented on Apr 2, 2025

    @DanTup
    Member

    @muhammadkamel that sounds like a different issue - could you file a new issue about that, including a screenshot showing exactly which button (and whether it's just that button, or the surrounding UI also doesn't work)? Thanks!

  3. added
    in devtoolsRelates to integration with Dart/Flutter DevTools
    on Apr 2, 2025
  4. added this to the v3.110.0 milestone on Apr 2, 2025
  5. DanTup commented on Apr 2, 2025

    @DanTup
    Member

    @elliette I can repro your issue, there's an error like this:

    Image

    This could be related to flutter/devtools#6105 - I think all hyperlinks in DevTools that appear when embedded need to call a special function to work for VS Code. I'll try to confirm it's this.

  6. modified the milestones: v3.110.0, v3.108.2 on Apr 3, 2025
  7. DanTup commented on Apr 3, 2025

    @DanTup
    Member

    The DevTools part was fine, the issue was that it the code to handle the message wasn't set up for the sidebar. I will push a patch that includes this shortly.

  8. DanTup commented on Apr 3, 2025

    @DanTup
    Member

    This fix was included in 3.108.2 (stable) and 3.109.20250404 (pre-release - not a typo, I used tomorrows date because I'd already pushed a pre-release earlier today with todays date).

  9. elliette commented on Apr 3, 2025

    @elliette
    Author

    Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in devtoolsRelates to integration with Dart/Flutter DevToolsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions