Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix isl not detecting workspace folder changes without reloading
Summary: It seems we were not properly subscribing to changes in the vscode workspace folders. We used `onConnectOrReconnect` inside the lazyAtom, which means it was not triggered on first connect. Since reconnects don't happen in most cases (maybe never for vscode connection...?), it would never actually subscribe. Instead, we could either move this to a not lazy atom, or make it just call the subscribe directly. I opt to make the atom not lazy, since we use this in the cwdSelector immediately on startup, there's no real use having it be lazy. Maybe that made sense when the cwd dropdown didn't use this state. Reviewed By: quark-zju Differential Revision: D57136047 fbshipit-source-id: 8298b8b94b06e109f78240d20cb42014f3d18e00
- Loading branch information