mehcode / atom-project-plus

Simply awesome project management in Atom.
https://atom.io/packages/project-plus
MIT License
99 stars 19 forks source link

Unable to use find and replace after switching project #105

Open jpmvferreira opened 5 years ago

jpmvferreira commented 5 years ago

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.

turigeza commented 4 years ago

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