flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.54k stars 314 forks source link

Post ToolEvent when widget in rebuild table is selected #7810

Closed helin24 closed 2 months ago

helin24 commented 2 months ago

Part of https://github.com/flutter/devtools/issues/4564

This sends a navigate to code ToolEvent to IDEs so that clicking on a widget in the rebuilds table opens the associated code in an editor.

This change still has an issue in that IntelliJ expects an event to include a field type, which this one doesn't. I'm not sure if that will require a change in IntelliJ code or in DDS somewhere. It works without further changes for VS Code.

It seems like since this is still gated by a feature flag that I shouldn't add a release note yet, but let me know if otherwise.

Fixes https://github.com/flutter/devtools/issues/4880