zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.69k stars 3.14k forks source link

Support for GitLab Duo #18549

Open valegui opened 1 month ago

valegui commented 1 month ago

Check for existing issues

Describe the feature

I was wondering if there's a way (or a plan to) to integrate GitLab Duo with Zed. Currently, GitLab Duo considers plugins/extension for other editors, but none consider the usage of the GitLab personal access token which can also grants access to GitLab Duo API endpoints, so I'm a bit lost on how (and if) I can use this assistant with Zed.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

Here are some open source examples of integrations:

viktomas commented 1 month ago

For code suggestions, all extensions (Visual Studio Extension, VS Code Extension, JetBrains Extension, Neovim Extension) use the GitLab Language Server under the hood.

We publish the Language Server as an npm package and as executables for all 3 major platforms.

The language server supports several custom messages. Those need to be supported by the editor plugin.

We also have an experimental feature where we provide Duo Chat as a web page served over HTTP from the language server. The intention is that clients that support webviews can create a simple webview with iframe that points to the language server.

If you have any questions/suggestions/feedback, please create an issue in one of the projects I linked 🙇

tachyons commented 1 month ago

I've wrote a minimal wrapper for GitLab duo LSP here