ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.41k stars 916 forks source link

[Feature request] Allow plugins to listen when a tab is activated #182

Open EdsonAlcala opened 4 years ago

EdsonAlcala commented 4 years ago

Hello, I was wondering if would be possible to allow plugins to know when the tab of the plugin is active.

GrandSchtroumpf commented 4 years ago

We could implement an event focused and a method isFocus on the Plugin Manager once the next version of the engine is implemented in remix-ide. Can you create an issue on https://github.com/ethereum/remix-ide and reference this one ?

GrandSchtroumpf commented 4 years ago

Actually, the HostPlugin expose a method focus already, so we could just add a method isFocus and the event focused there. So you would have to do :

client.call('sidePanel', 'isFocus', 'myPlugin')
defiboy commented 3 years ago

Hello, just curious, is there any update about this issue?