zed-industries / extensions

Extensions for the Zed editor
624 stars 251 forks source link

Support building extensions without point and click (support cli) #958

Open phromo opened 3 weeks ago

phromo commented 3 weeks ago

Check for existing issues

Misc notes

Currently the authoring extensions docs says

To test your extension locally, you can open up the extensions view with the zed: extensions command and then click on the Install Dev Extension button. This will open a file dialog where you can locate and select the directory in which your extension resides. Zed will then build your extension and load it.

However, opening the UI and pointing and clicking for each build makes development tedious.

It would be nice if a CLI-variant of this action could be provided for testing during development.

phromo commented 3 weeks ago

Found https://github.com/zed-industries/zed/pull/9523/ so possibly the only change needed is an update to this repo's authoring md

phromo commented 3 weeks ago

I added extension_cli to the script/bundle_linux script and after that I have zed-extension which is what I need. I guess the TODOs here would be to add this to AUTHORING EXTENSIONS and add the extension_cli to the build bundle script (and the equivalent on Mac if it's not already distributed there).