Rename extension to smbcloud-zed-extension
Seto Elkahfi committed
Jun 26, 2025 at 11:43 UTC
15b888b7cd844c6da1bfb68740bc124ffea07773
3 files changed
+8
-8
Cargo.toml
+2
-2
@@ -1,11 +1,11 @@
1
[package]
2
-name = "slash_commands_example"
2
+name = "smbcloud-zed-extension"
3
version = "0.1.0"
4
edition = "2021"
5
license = "Apache-2.0"
6
7
[lib]
8
-path = "src/slash_commands_example.rs"
8
+path = "src/smbcloud_zed_extension.rs"
9
crate-type = ["cdylib"]
10
11
[dependencies]
extension.toml
+2
-2
@@ -1,5 +1,5 @@
1
-id = "slash-commands-example"
2
-name = "Slash Commands Example"
1
+id = "smbcloud-zed-extension"
2
+name = "smbCloud Zed Extension"
3
description = "An example extension showcasing slash commands."
4
version = "0.1.0"
5
schema_version = 1
src/smbcloud_zed_extension.rs
renamed
+4
-4
@@ -3,11 +3,11 @@ use zed_extension_api::{
3
SlashCommandOutputSection, Worktree,
4
};
5
6
-struct SlashCommandsExampleExtension;
6
+struct SmbCloudZedExtension;
7
8
-impl zed::Extension for SlashCommandsExampleExtension {
8
+impl zed::Extension for SmbCloudZedExtension {
9
fn new() -> Self {
10
- SlashCommandsExampleExtension
10
+ SmbCloudZedExtension
11
}
12
13
fn complete_slash_command_argument(
@@ -87,4 +87,4 @@ impl zed::Extension for SlashCommandsExampleExtension {
87
}
88
}
89
90
-zed::register_extension!(SlashCommandsExampleExtension);
90
+zed::register_extension!(SmbCloudZedExtension);