Skip to content

Improve Outline display in VS Code (add elements preview) #2475

Closed

Description

@subzero911

That's how outline looks in VS Code
image
It's really hard to navigate here. You can't figure out: "What's an icon? What's a text?"
Much better how it looks in Android Studio:
image
Also with nice round icons for widgets ("R" for Row, "S" for Scaffold etc.)

Activity

  1. added this to the v3.11.0 milestone on May 19, 2020
  2. added
    in editorRelates to code editing or language features
    in flutterRelates to running Flutter apps
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on May 19, 2020
  3. DanTup commented on May 20, 2020

    @DanTup
    Member

    @jacob314 what's the best way to decide which attributes labels to show here? I noticed in DevTools, it doesn't seem to show the same as in the Android Studio above (it shows the key instead of the text):

    Screenshot 2020-05-20 at 13 56 18

    Screenshot 2020-05-20 at 13 56 14

  4. modified the milestones: v3.11.0, On Deck, v3.12.0 on May 25, 2020
  5. beevatsyu commented on May 27, 2020

    @beevatsyu

    Why do we have a seperate sidebar for outline, when the explorer outline does the same thing better (e.g. can sort from "More Action")?

    Screenshot from 2020-05-27 09-11-43

  6. DanTup commented on May 27, 2020

    @DanTup
    Member

    @beevatsyu

    Why do we have a seperate sidebar for outline, when the explorer outline does the same thing better (e.g. can sort from "More Action")?

    I really wanted to use the built-in Outline view, but there are issues that prevented us, most notable:

  7. beevatsyu commented on May 28, 2020

    @beevatsyu

    @DanTup
    Thanks for the clarification. Any plan to incorporate sort functionality on the outline?

  8. DanTup commented on Jun 1, 2020

    @DanTup
    Member

    @beevatsyu not currently. There's a lot of functionality built in to the built-in outline and reproducing it all in the Flutter Outline would be a lot of effort. It would be nice to have only a single outline, but it doesn't seem likely this will be easy in the near future because of VS Code limitations. Generally I'd suggest to just switch between the outlines depending on your needs.

  9. DanTup commented on Jun 1, 2020

    @DanTup
    Member

    We'll now show the first attribute that's named data, icon or value alongside nodes in the Outline:

    Screenshot 2020-06-01 at 14 43 32

    We can add other attribute names to the list if there are widgets that are missing significant info, but it looked weird to just always show the first (for example sometimes it'd be key which is a bit useless) and it looks really crammed if we show them all.

  10. added a commit that references this issue on Jun 11, 2020
  11. cgilbu commented on Sep 21, 2023

    @cgilbu

    How about configuring it to show the first comment within the widget? By doing that, we can establish references to every widget, simplifying the navigation through the widget tree and the outline?

  12. DanTup commented on Oct 9, 2023

    @DanTup
    Member

    @cgilbu sorry for the delay in responding. Though I'm not sure exactly what you're suggesting - do you mean the dartdoc, or really the first comment inside the class?

    If you have ideas, please open a new issue with more details and an example. I'm also interested to know if people use this outline functionality much - my feeling was that it's probably not used much (I don't really get any bug reports or feature requests for it), but I don't know if that's accurate. Thanks!

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 editorRelates to code editing or language featuresin flutterRelates to running Flutter appsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions