atom-project-plus icon indicating copy to clipboard operation
atom-project-plus copied to clipboard

Unable to use find and replace after switching project

Open jpmvferreira opened this issue 6 years ago • 1 comments

This is going to be quite a weak issue, as this doesn't happen all the time and i am not able to find out why this happens, but sometimes after switching projects i am not able to use find and replace and i have to open another tab, only then will it be possible to do so.

If i find out anything else ill post it here.

jpmvferreira avatar Sep 10 '19 23:09 jpmvferreira

I have the same issue. I have to switch to a new tab after switching project then everything goes back to normal until you switch project again.

I have a plugin which also suffers from this issue because it uses observeActivePaneItem to detect the tab change. I guess observeActivePaneItem does not get called when the project changes.

IMO observeActivePaneItem should get called when a project changes. Note: This is just a vague theory and have not been tested. https://flight-manual.atom.io/api/v1.0.7/Workspace/#instance-observeActivePaneItem

Or one could argue that I should also observe onDidChangePaths ? https://flight-manual.atom.io/api/v1.0.7/Project/#instance-onDidChangePaths

turigeza avatar Oct 30 '19 12:10 turigeza