Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extension_api: Add documentation to context server configuration (#29800)

Bennet Bo Fennere6f6b351b737
diff --git a/crates/extension/src/types/context_server.rs b/crates/extension/src/types/context_server.rs
index e0bac5b0d91..2e3d20b047c 100644
--- a/crates/extension/src/types/context_server.rs
+++ b/crates/extension/src/types/context_server.rs
@@ -1,10 +1,10 @@
-/// Configuration for a context server.
+/// Configuration for context server setup and installation.
#[derive(Debug, Clone)]
pub struct ContextServerConfiguration {
- /// Installation instructions for the user.
+ /// Installation instructions in Markdown format.
pub installation_instructions: String,
- /// Default settings for the context server.
- pub default_settings: String,
- /// JSON schema describing server settings.
+ /// JSON schema for settings validation.
pub settings_schema: serde_json::Value,
+ /// Default settings template.
+ pub default_settings: String,
}
diff --git a/crates/extension_api/wit/since_v0.5.0/context-server.wit b/crates/extension_api/wit/since_v0.5.0/context-server.wit
index 89dc99c85b1..7234e0e6d0f 100644
--- a/crates/extension_api/wit/since_v0.5.0/context-server.wit
+++ b/crates/extension_api/wit/since_v0.5.0/context-server.wit
@@ -1,11 +1,11 @@
interface context-server {
- ///
+ /// Configuration for context server setup and installation.
record context-server-configuration {
- ///
+ /// Installation instructions in Markdown format.
installation-instructions: string,
- ///
+ /// JSON schema for settings validation.
settings-schema: string,
- ///
+ /// Default settings template.
default-settings: string,
}
}