Since the Zed editor is gaining attention among developers, we should consider adding an extension for Zed to the Motoko roadmap.
Thank you for letting us know! What do you like about Zed more than VSCode?
You can submit your suggestion here.
I also am a fan of Zed!
It’s very lightweight, written in Rust. So, if I’m coding on my old personal laptop, it’s nice to not dedicate so many resources to my editor while I’m running other processes.
Most importantly, the fact that it’s open-source and community driven makes it a nice alternative to VSCode, which is owned by Microsoft and is becoming more and more coupled with the rest of their suite of products over time
Nice to learn more! I am wondering if a Zed extension is something a grantee could pick up if they’d like to.
Yeah Zed is great!. I love how they incorporated the AI features too. I now switch between doing UI work in Zed and Motoko work in VSCode, but Zed seems like a great tool to support.
I’m considering developing a Motoko extension for Zed. What’s the recommended way to integrate the language server?
If the binary from the Motoko release page includes mo-ide, I’d like to use that.
Otherwise, I assume it can use dfx _language-service.
Ideally, I’d like to follow a similar approach to the one used for the VSCode extension, if possible.
Also, is it possible to apply for a grant related to this?
Edit: Currently, I am using the method of downloading the binary file containing mo-ide from the GitHub release page, but I have not yet fully grasped mo-ide specifications.
Hey @wiyota the mo-ide
binary is being removed as of chore: deletes mo-ide by christoph-dfinity · Pull Request #5075 · dfinity/motoko · GitHub. It’s been long superseeded by vscode-motoko/src/server at master · dfinity/vscode-motoko · GitHub in the VSCode plugin. I’d recommend starting there. If you run into troubles we’ll look into making it easier to run the JS based server standalone.
(Also responded on Discord, but figured it would be good to also have this information for anyone reading the Forum)
I see that I was not mistaken that there was no mo-ide related reference in vscode-motoko and it appeared to be handled directly in js.
It was a bit unexpected, I will explore how to access the language server from the vscode-motoko release or via npm, but it might make my work easier if the language server has its own independent api.