Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run custom code in extensions #10795

Open
1 task done
alanhamlett opened this issue Apr 20, 2024 · 6 comments
Open
1 task done

Ability to run custom code in extensions #10795

alanhamlett opened this issue Apr 20, 2024 · 6 comments
Labels
enhancement [core label] extension infrastructure Feedback for extensions APIs, creation, management, etc

Comments

@alanhamlett
Copy link

alanhamlett commented Apr 20, 2024

Check for existing issues

  • Completed

Describe the feature

After #5269, an extension API was added but it only supports Grammer, Language, and Theme changes. A full extension API is necessary for real extensions that need to execute code like WakaTime.

@alanhamlett alanhamlett added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Apr 20, 2024
@jansol
Copy link
Contributor

jansol commented Apr 20, 2024

There is already some support for custom code hooks (language server integrations use this to run and optionally download language servers).

@hanxuanliang
Copy link

Will it be possible to support the construction of plugins similar to Copilot in the future?

@jansol
Copy link
Contributor

jansol commented Apr 21, 2024

What do you mean? There is already built in support for Copilot.

@m-kalai
Copy link

m-kalai commented Apr 21, 2024

probably just means what most of us here are looking for, being able to extend Zed functionality even without LSP. similar to Sublime plugins maybe. Copilot was just an example i guess. in my case i was excited to try to create own extension few days ago (something simple manipulating text for example), only to find out that i can't do that much if i don't have language server 🙂

@hanxuanliang
Copy link

My intention is to develop a plugin similar to a copilot, such as CodeGeeX in VSCode.

@Moshyfawn Moshyfawn added extension infrastructure Feedback for extensions APIs, creation, management, etc and removed triage Maintainer needs to classify the issue labels Apr 22, 2024
@JosephTLyons JosephTLyons removed the admin read Pending admin review label Apr 22, 2024
@UserNobody14
Copy link

There's a really great project called extism that essentially lets you run arbitrary pieces of wasm inside other projects (with some configs and other convenient features available). I think that would be ideal for zed, since it wouldn't leave the extension system exclusive to rust devs, and it would enable some sandboxing and security of extension code vs. core code. Additionally, it would simplify distribution, since extism plugins can be distributed from a simple wasm file. I've been working on an (unrelated) rust project that uses extism a little, if the devs are interested I'd be happy to try working it in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] extension infrastructure Feedback for extensions APIs, creation, management, etc
Projects
None yet
Development

No branches or pull requests

7 participants