mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-27 20:42:14 +00:00
move GIS check to Python agent (#29)
This commit is contained in:
parent
b993e35460
commit
cff90ee869
12 changed files with 80 additions and 102 deletions
|
@ -29,6 +29,22 @@ impl IpcCommand for v1::check::HealthRequest {
|
|||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::check::GeoDjangoPrereqsRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
command: Some(messages::request::Command::CheckGeodjangoPrereqs(*self)),
|
||||
}
|
||||
}
|
||||
|
||||
fn from_response(response: messages::Response) -> Result<messages::Response, ProcessError> {
|
||||
match response.result {
|
||||
Some(messages::response::Result::CheckGeodjangoPrereqs(_)) => Ok(response),
|
||||
Some(messages::response::Result::Error(e)) => Err(ProcessError::Health(e.message)),
|
||||
_ => Err(ProcessError::Response),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl IpcCommand for v1::python::GetEnvironmentRequest {
|
||||
fn into_request(&self) -> messages::Request {
|
||||
messages::Request {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue