Skip to content

Close Embedded Widget Inspector Window on Debug Session End #5029

@beattizzle

Description

@beattizzle

I find it slightly annoying that I have to manually exit out of the embedded widget window when I'm done with a debug session to get back to the view I was in prior to starting the debug session. I would like to propose a new settings flag that controls whether the debug window closes automatically upon debug session end or not.

I think a solution to this problem would be to add a Dart->DevTools settings flag similar to 'Dart: Dev Tools Reuse Windows' which would then control whether or not this happens on debug session end. Then, in handleDebugSessionEnd() or a more appropriate location, add code to call DevToolsEmbeddedView.dispose() (currently set to private) for the embedded view associated with the session.

Included is a screenshot with some pseudocode I wrote as a proposed solution. Thanks for your consideration.

proposedChange

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsin devtoolsRelates to integration with Dart/Flutter DevToolsis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions