mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
8ec36f1e2b
This PR adds an initial notion of extension capabilities. Capabilities are used to express the operations an extension is capable of doing. This will provide further insights into what an extension can do, as well as provide the ability to grant or deny the set of capabilities. Capabilities are defined in the `capabilities` field in the extension manifest. This field contains an array of capabilities. Each capability has a `kind` to denote the known capability it corresponds to. Individual capabilities may have additional fields, based on the `kind`. Here's an example of some capabilities: ```toml capabilities = [ { kind = "download-file", host = "github.com", path_prefix = "owner/repo" }, { kind = "npm:install", package = "@vue/language-server" }, ] ``` In order to avoid a breaking change, the `capabilities` field is currently optional and defaults to an empty array. This will allow us to add support for extensions to define capabilities before we start enforcing them. Release Notes: - N/A |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE-GPL |