zed/crates/extension
Marshall Bowers 8ec36f1e2b
extension: Define capabilities in the extension manifest (#16953)
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
2024-08-27 11:10:58 -04:00
..
src extension: Define capabilities in the extension manifest (#16953) 2024-08-27 11:10:58 -04:00
build.rs Copy extension_api Rust files to OUT_DIR when building extension to work around rust-analyzer limitation (#16064) 2024-08-10 18:19:11 -06:00
Cargo.toml extension: Upgrade wasmtime to v21 (#15210) 2024-07-25 13:56:40 -04:00
LICENSE-GPL Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00