You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom views: Updating the label of a node isn't reflected until the node gets repainted (e.g. goes out of view and comes back) #77000
Since the change to the new tree, updating the label of a node isn't reflected until the node gets repainted (e.g. goes out of view and comes back). Where as before the change would be reflected immediately.
This happens in many places in the GitLens views, but one of the easiest to repo is on the compare node under a repository:
You can see there, that I've expanded the node and its children (commits & files changed) have no count at the start (since it is a delayed calculation). But this delayed update usually happens very quickly and if you cause the nodes to scroll out of view (to force them to be repainted) they will have the counts.
I have the same issue with my Test Explorer extension, not just with the label but iconPath and description as well.
To reproduce: install the Mocha Test Explorer extension, clone that extension's repository, run npm install and open it in VS Code. Then open the Test Explorer and run the tests.
This is what it should look like (and does in 1.36.1):
This is what it looks like in Insiders from 2019-07-19:
Alex Ross (@alexr00) While this seems almost completely fixed, there still seems to be an issue if the node being updated changes its collapsibleState -- I think specifically between None and either Collapsed or Expanded.
I don't have a great repro case yet (working on it), but wanted to mention it.
Activity
alexr00 commentedon Jul 10, 2019
This is fixed by #77072 since they have the same root cause.
eamodio commentedon Jul 11, 2019
Alex Ross (@alexr00) I can still reproduce this issue even though #77072 is fixed
alexr00 commentedon Jul 12, 2019
I've tested using https://github.com/microsoft/vscode-extension-samples/blob/master/tree-view-sample/src/jsonOutline.ts#L26 and it is working well for me. What are the repro steps?
eamodio commentedon Jul 12, 2019
This happens in many places in the GitLens views, but one of the easiest to repo is on the compare node under a repository:

You can see there, that I've expanded the node and its children (commits & files changed) have no count at the start (since it is a delayed calculation). But this delayed update usually happens very quickly and if you cause the nodes to scroll out of view (to force them to be repainted) they will have the counts.
hbenl commentedon Jul 20, 2019
I have the same issue with my Test Explorer extension, not just with the label but iconPath and description as well.
To reproduce: install the Mocha Test Explorer extension, clone that extension's repository, run
npm installand open it in VS Code. Then open the Test Explorer and run the tests.This is what it should look like (and does in 1.36.1):

This is what it looks like in Insiders from 2019-07-19:

7 remaining items
alexr00 commentedon Jul 29, 2019
I see what you're saying now. I'm looking into it.
sandy081 commentedon Jul 31, 2019
Alex Ross (@alexr00) Are there any steps to verify it?
alexr00 commentedon Jul 31, 2019
#78222 is actually a duplicate of this bug. Since that bug is verified, this bug is also verified.
eamodio commentedon Jul 31, 2019
Yeah, GitLens works again! Thank you!
eamodio commentedon Aug 1, 2019
Alex Ross (@alexr00) While this seems almost completely fixed, there still seems to be an issue if the node being updated changes its
collapsibleState-- I think specifically between None and either Collapsed or Expanded.I don't have a great repro case yet (working on it), but wanted to mention it.
eamodio commentedon Aug 1, 2019
Alex Ross (@alexr00) if you clone https://github.com/eamodio/vscode-simple.git you will see the issue above.
eamodio commentedon Aug 1, 2019
Although worse than the above, I've also found that my "Show More..." actions in the trees also no longer work (they work fine in stable):
Trying to isolate it.
alexr00 commentedon Aug 2, 2019
Investigating the Show more issue.