mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-28 04:45:03 +00:00
reorganize proto files a bit (#30)
This commit is contained in:
parent
b1b3e6a5ec
commit
8e941ba8a0
22 changed files with 225 additions and 210 deletions
|
@ -13,7 +13,7 @@ pub trait IpcCommand: Default {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::check::HealthRequest {
|
||||
impl IpcCommand for v1::commands::check::HealthRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
command: Some(messages::request::Command::CheckHealth(*self)),
|
||||
|
@ -29,7 +29,7 @@ impl IpcCommand for v1::check::HealthRequest {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::check::GeoDjangoPrereqsRequest {
|
||||
impl IpcCommand for v1::commands::check::GeoDjangoPrereqsRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
command: Some(messages::request::Command::CheckGeodjangoPrereqs(*self)),
|
||||
|
@ -45,7 +45,7 @@ impl IpcCommand for v1::check::GeoDjangoPrereqsRequest {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::python::GetEnvironmentRequest {
|
||||
impl IpcCommand for v1::commands::python::GetEnvironmentRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
command: Some(messages::request::Command::PythonGetEnvironment(*self)),
|
||||
|
@ -61,7 +61,7 @@ impl IpcCommand for v1::python::GetEnvironmentRequest {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::django::GetProjectInfoRequest {
|
||||
impl IpcCommand for v1::commands::django::GetProjectInfoRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
command: Some(messages::request::Command::DjangoGetProjectInfo(*self)),
|
||||
|
|
|
@ -79,7 +79,7 @@ impl PythonProcess {
|
|||
) -> Result<(), ProcessError> {
|
||||
let request = messages::Request {
|
||||
command: Some(messages::request::Command::CheckHealth(
|
||||
check::HealthRequest {},
|
||||
commands::check::HealthRequest {},
|
||||
)),
|
||||
};
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
pub mod v1 {
|
||||
pub mod messages {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.messages.rs"));
|
||||
}
|
||||
|
||||
pub mod check {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.check.rs"));
|
||||
pub mod commands {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.commands.rs"));
|
||||
}
|
||||
|
||||
pub mod django {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.django.rs"));
|
||||
}
|
||||
|
||||
pub mod messages {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.messages.rs"));
|
||||
}
|
||||
|
||||
pub mod python {
|
||||
include!(concat!(env!("OUT_DIR"), "/djls.v1.python.rs"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue