mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
When the setting "Group by folder" is changed, the entire sources UI is rerendered. Rerendering removes filesystem subfolder nodes that are added based on the events from the underlying workspace. Therefore, the local filesystem didn't render after you change the setting. This CL adds a call to _resetWorkspace to re-fetch workspace folders when the UI is reset. Test expectations updated in https://chromium-review.googlesource.com/c/chromium/src/+/2279816 Fixed: chromium:829319 Bug: chromium:1066415 Change-Id: I0cbb481f26a7f9bb747b0ed608b6cee2bdbd856c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2279834 Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org> Reviewed-by: Peter Marshall <petermarshall@chromium.org>