summaryrefslogtreecommitdiff
path: root/support/texlab/src/options.rs
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-13 03:03:20 +0000
committerNorbert Preining <norbert@preining.info>2021-06-13 03:03:20 +0000
commit2ba4b1ac7860085c0b259aacb0d99bd2c730edbc (patch)
tree45f851c69d035dca1793ce55cce4783eb52b1dea /support/texlab/src/options.rs
parent73dcf554624f325ec90d02815c36d92a33c2667f (diff)
CTAN sync 202106130303
Diffstat (limited to 'support/texlab/src/options.rs')
-rw-r--r--support/texlab/src/options.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/support/texlab/src/options.rs b/support/texlab/src/options.rs
index 2626143e18..20f92a90f4 100644
--- a/support/texlab/src/options.rs
+++ b/support/texlab/src/options.rs
@@ -75,6 +75,12 @@ pub struct BuildOptions {
#[serde(default)]
pub is_continuous: bool,
+
+ #[serde(default)]
+ pub on_save: bool,
+
+ #[serde(default)]
+ pub forward_search_after: bool,
}
impl BuildOptions {
@@ -99,6 +105,17 @@ impl BuildOptions {
#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
+pub struct ViewerOptions {
+ #[serde(default)]
+ pub enabled: bool,
+
+ pub executable: Option<String>,
+
+ pub args: Option<String>,
+}
+
+#[derive(Debug, PartialEq, Eq, Clone, Default, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
pub struct ChktexOptions {
#[serde(default)]
pub on_open_and_save: bool,