I am currently developing an Vscode Extension, it uses TreeView.
The TreeView works fine, but it has one problem:
Why the vscode tree view file item has a larger indentation than it should be?
(folder item seems have correct indentation)
Is there any config I missed? Or what are the potential causes?
(for the code, its complex, not worth showing; I may update a easier one later.)
Update:
simpler Normal Tree View
, and the indentation is indeed there >
arrowNormal one
, Idk why align-icon-with-twisty
css class is the key, but I have no idea why its missing (see graph) Remove the parent folder's icon fixed the indent problem.
(no idea why)