zed/extensions/gleam
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
..
languages/gleam assistant: Add annotations to more languages (#15866) 2024-08-07 13:47:21 +02:00
src gleam: Clean up slash commands in preparation for release (#16232) 2024-08-14 12:22:22 -04:00
Cargo.toml gleam: Bump to v0.2.0 (#16258) 2024-08-14 18:14:19 -04:00
extension.toml extension: Define capabilities in the extension manifest (#16953) 2024-08-27 11:10:58 -04:00
LICENSE-APACHE
packages.txt gleam: Clean up slash commands in preparation for release (#16232) 2024-08-14 12:22:22 -04:00