First Commit
This commit is contained in:
2
crates/zed/.gitignore
vendored
Normal file
2
crates/zed/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
target/
|
||||
JsonRPC/
|
10
crates/zed/Cargo.toml
Normal file
10
crates/zed/Cargo.toml
Normal file
@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "jrpc-syntax"
|
||||
version = "0.0.1"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
zed_extension_api = "0.1.0"
|
7
crates/zed/extension.toml
Normal file
7
crates/zed/extension.toml
Normal file
@ -0,0 +1,7 @@
|
||||
id = "jrpc-syntax"
|
||||
name = "JRPC Syntax"
|
||||
version = "0.0.1"
|
||||
schema_version = 1
|
||||
authors = ["Fabian Stamm <dev@fabianstamm.de>"]
|
||||
description = "Adds JRPC syntax highlighting to Zed"
|
||||
repository = "https://github.com/"
|
17
crates/zed/src/lib.rs
Normal file
17
crates/zed/src/lib.rs
Normal file
@ -0,0 +1,17 @@
|
||||
use zed_extension_api as zed;
|
||||
|
||||
struct JRPCSyntaxExtension {
|
||||
// ... state
|
||||
}
|
||||
|
||||
impl zed::Extension for JRPCSyntaxExtension {
|
||||
fn new() -> Self
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
// ...
|
||||
}
|
||||
|
||||
zed::register_extension!(JRPCSyntaxExtension);
|
Reference in New Issue
Block a user