mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-07-24 12:53:52 +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
|
@ -23,7 +23,7 @@ impl DjangoProject {
|
|||
pub fn setup(mut python: PythonProcess) -> Result<Self, ProjectError> {
|
||||
let py = Python::setup(&mut python)?;
|
||||
|
||||
match check::GeoDjangoPrereqsRequest::execute(&mut python)?.result {
|
||||
match commands::check::GeoDjangoPrereqsRequest::execute(&mut python)?.result {
|
||||
Some(messages::response::Result::CheckGeodjangoPrereqs(response)) => {
|
||||
if !response.passed {
|
||||
eprintln!("Warning: GeoDjango detected but GDAL is not available.");
|
||||
|
@ -43,7 +43,7 @@ impl DjangoProject {
|
|||
_ => Err(ProcessError::Response)?,
|
||||
}
|
||||
|
||||
let response = django::GetProjectInfoRequest::execute(&mut python)?;
|
||||
let response = commands::django::GetProjectInfoRequest::execute(&mut python)?;
|
||||
|
||||
let version = match response.result {
|
||||
Some(messages::response::Result::DjangoGetProjectInfo(response)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue