mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-12-23 09:19:21 +00:00
Do not try to run latexmk on bib files
This commit is contained in:
parent
f066bb3e37
commit
5527e52b7f
1 changed files with 7 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ use lsp_types::{
|
|||
use serde::{Deserialize, Serialize};
|
||||
use serde_repr::{Deserialize_repr, Serialize_repr};
|
||||
|
||||
use crate::{client, req_queue::ReqQueue, ClientCapabilitiesExt, Uri};
|
||||
use crate::{client, req_queue::ReqQueue, ClientCapabilitiesExt, DocumentLanguage, Uri};
|
||||
|
||||
use super::{forward_search, FeatureRequest};
|
||||
|
||||
|
|
@ -127,6 +127,12 @@ impl BuildEngine {
|
|||
.map(|document| document.as_ref())
|
||||
.unwrap_or_else(|| request.main_document());
|
||||
|
||||
if document.language() != DocumentLanguage::Latex {
|
||||
return Ok(BuildResult {
|
||||
status: BuildStatus::SUCCESS,
|
||||
});
|
||||
}
|
||||
|
||||
if document.uri.scheme() != "file" {
|
||||
return Ok(BuildResult {
|
||||
status: BuildStatus::FAILURE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue