Open stefcameron opened 3 years ago
@stefcameron CMD+R
doesn't reload electron's main
process, you must restart lens.
I would recommend you to develop extensions with Lens-dev version where if main process part is changed the app will be restarted automatically.
@stefcameron
CMD+R
doesn't reload electron'smain
process, you must restart lens. I would recommend you to develop extensions with Lens-dev version where if main process part is changed the app will be restarted automatically.
Thank you! This should be documented, then, alongside the information about the appMenus
extension point.
The appMenu's are already documented https://docs.k8slens.dev/latest/extensions/guides/main-extension/#appmenus
But I have updated the title to reflect that the extension development guide should probably mention make dev
on the Lens side.
The appMenu's are already documented https://docs.k8slens.dev/latest/extensions/guides/main-extension/#appmenus
It doesn't mention having to completely quit Lens and re-open in order to see updates to code that runs in the main process that were may while Lens was running. That's the point here.
But I have updated the title to reflect that the extension development guide should probably mention
make dev
on the Lens side.
I don't think it's correct to re-title this issue. The docs only mention, "Note that this is the only UI feature that the Main Extension API allows you to customize." But that doesn't tell me that nothing I change that's related to the main process will update until I quit/restart (or kill make dev
on the Lens side and run make dev
again).
@ixrock anyone ever found how to get an extension to also run Lens-dev and reload everything on source change? this would really improve the ability to create extensions nicely
I define
main.ts
like this:Lens loads and adds a "File > foo" item.
If I then update my code to this:
and reload Lens with CMD+R, the menu item is still "foo".
I have to kill the Lens process (if I started with
DEBUG=true /Applications/Lens.app/Contents/MacOS/Lens
) or quit/restart Lens in order to see the updated menu item label.Version: 4.0.0-alpha.4