Skip to content

Indentation of tree view item label changes when adding icon #28974

@letmaik

Description

@letmaik
  • VSCode Version: 1.13.1
  • OS Version: Win 10

Steps to Reproduce:

  1. Create custom tree view extension with icons and observe padding of label.
  2. It is impossible to have icons and re-create the layout of the built-in explorer.

In the first picture, in the "Git Context" custom tree view (this is an experiment from myself, not released on the market yet), it looks like the .gitignore entry belongs to the folder above, but in fact it doesn't.
image

Without icons, the layout is correct:
image

EDIT: I just noticed that the "minimal" icon theme of vs code has folder icons and then adjusts the padding accordingly:

image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtree-viewsExtension tree view issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions