Skip to content

Icons in tree #15

@worksofliam

Description

@worksofliam

First off, awesome work & thank you for 0.3!

I am trying to build some new UI using your tree view, but mostly as a clickable list.

I have it working really well - except the icons do not show up!

Here is a screenshot of what I have:

image

Here is how I am building my array:

      {
        icons: {
          leaf: `plus`
        },
        label: `New Action`,
        value: `-1`
      },
      ...allActions.map((action, index) => ({
        icons: {
          leaf: `debug-start`
        },
        label: `${action.name} (${action.type}: ${action.extensions.join(`, `)})`,
        value: String(index)
      }))

I can see from the developer tools.. it looks correct:

<span class="codicon codicon-debug-start" style="animation-duration: 1.5s; font-size: 16px; height: 16px; width: 16px;"></span>

Wondering if you had any pointers? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions