Skip to content

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

Closed

Description

@eamodio

Issue Type: Bug

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.

//cc Alex Ross (@alexr00)

VS Code version: Code - Insiders 1.37.0-insider (9296aaa, 2019-07-09T05:26:27.407Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.93GB (17.89GB free)
Process Argv
Screen Reader no
VM 0%

Activity

  1. alexr00 commented on Jul 10, 2019

    @alexr00
    Member

    This is fixed by #77072 since they have the same root cause.

  2. added
    bug
    tree-views
    on Jul 10, 2019
  3. added this to the July 2019 milestone on Jul 10, 2019
  4. eamodio commented on Jul 11, 2019

    @eamodio
    ContributorAuthor

    Alex Ross (@alexr00) I can still reproduce this issue even though #77072 is fixed

  5. added
    info-needed
    and removed
    bug
    on Jul 12, 2019
  6. eamodio commented on Jul 12, 2019

    @eamodio
    ContributorAuthor

    This happens in many places in the GitLens views, but one of the easiest to repo is on the compare node under a repository:
    image

    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.

    image

  7. hbenl commented on Jul 20, 2019

    @hbenl

    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):
    Peek 2019-07-20 16-03

    This is what it looks like in Insiders from 2019-07-19:
    Peek 2019-07-20 16-01

  8. 7 remaining items

  9. alexr00 commented on Jul 29, 2019

    @alexr00
    Member

    I see what you're saying now. I'm looking into it.

  10. added
    bug
    and removed
    info-needed
    on Jul 30, 2019
  11. sandy081 commented on Jul 31, 2019

    @sandy081
    Member

    Alex Ross (@alexr00) Are there any steps to verify it?

  12. added
    verification-steps-needed
    on Jul 31, 2019
  13. alexr00 commented on Jul 31, 2019

    @alexr00
    Member

    #78222 is actually a duplicate of this bug. Since that bug is verified, this bug is also verified.

  14. added
    verified
    and removed
    verification-steps-needed
    on Jul 31, 2019
  15. eamodio commented on Jul 31, 2019

    @eamodio
    ContributorAuthor

    Yeah, GitLens works again! Thank you!

  16. eamodio commented on Aug 1, 2019

    @eamodio
    ContributorAuthor

    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.

  17. eamodio commented on Aug 1, 2019

    @eamodio
    ContributorAuthor

    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):

    image

    Trying to isolate it.

  18. alexr00 commented on Aug 2, 2019

    @alexr00
    Member

    Investigating the Show more issue.

  19. locked and limited conversation to collaborators on Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugtree-viewsverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions