Automagically opens the activities view when workspace is empty. It uses callbacks to monitor windows and workspaces (instead of actively checking on them on certain time intervals), which makes it very efficient and responsive.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
The only code change in this new version of Foresight, is that it does not consider the first workspace as an exception to opening the Activities view (this is why the condition "this._currentWorkspace.index() === 0" was removed). Besides this, support for GNOME Shell 48 was added by a simple change in the metadata.json file. Thanks in advance for the review :)