Skip to content

Commit dcee38e

Browse files
committed
Switch to new version of extension API
1 parent 4797f99 commit dcee38e

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ crate-type = ["cdylib"]
1212
[dependencies]
1313
serde = "1.0"
1414
schemars = "0.8"
15-
zed_extension_api = { path = "../zed/crates/extension_api" }
15+
zed_extension_api = "0.5.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
To use the extension, you will need to point the context server at a Postgres database by setting the database_url
1+
To use the extension, you will need to point the context server at a Postgres database by setting the `database_url`

src/postgres_model_context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ impl zed::Extension for PostgresModelContextExtension {
5555
_context_server_id: &ContextServerId,
5656
_project: &Project,
5757
) -> Result<Option<ContextServerConfiguration>> {
58-
let installation_instructions = include_str!("../assets/installation_instructions.md");
59-
let default_settings = include_str!("../assets/default_settings.jsonc").to_string();
60-
58+
let installation_instructions =
59+
include_str!("../configuration/installation_instructions.md").to_string();
60+
let default_settings = include_str!("../configuration/default_settings.jsonc").to_string();
6161
let settings_schema =
6262
serde_json::to_string(&schemars::schema_for!(PostgresContextServerSettings))
6363
.map_err(|e| e.to_string())?;
6464

6565
Ok(Some(ContextServerConfiguration {
66-
installation_instructions: installation_instructions.to_string(),
66+
installation_instructions,
6767
default_settings,
6868
settings_schema,
6969
}))

0 commit comments

Comments
 (0)