Skip to content

Conversation

@effectivecui
Copy link
Contributor

Problem description:
When you create folders continuously and quickly, you will enter an infinite loop, causing the interaction to become unresponsive under the code server mode

@effectivecui effectivecui changed the title avoid while loop when item.children is empty. Jan 3, 2024
@effectivecui effectivecui force-pushed the bugfix-create-folder branch 2 times, most recently from b7fdd15 to 0b08603 Compare January 3, 2024 12:28
@lramos15
Copy link
Member

lramos15 commented Jan 3, 2024

Do you have a linked bug and repro steps? I'm surprised there is any issue here given that the for loop should not iterate if empty

@effectivecui
Copy link
Contributor Author

Do you have a linked bug and repro steps? I'm surprised there is any issue here given that the for loop should not iterate if empty

I don't have a linked bug, but this bug bother me when I use code server mode. The reproduce step is that the user interaction become unresponsive when you create folders continuously and quickly, for example, create two folders quickly in a second, and then you can not do anything about code server vscode, because the while loop will not break out when the item is not null value and the item.children is empty. Here is a screen record.

2024-01-05.10.54.13.mov
@lramos15 lramos15 added this to the December / January 2024 milestone Jan 5, 2024
@lramos15 lramos15 merged commit dd5be7a into microsoft:main Jan 5, 2024
@lramos15
Copy link
Member

lramos15 commented Jan 5, 2024

Thanks for the contribution!

@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants