summaryrefslogtreecommitdiff
path: root/support/texlab
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-27 03:03:42 +0000
committerNorbert Preining <norbert@preining.info>2023-03-27 03:03:42 +0000
commit8ee50414f6054311ac11efe8ea6360c25c622498 (patch)
treee1b68ea1215d21284e59d95c2a39a632efea083b /support/texlab
parent17a3481529d31ffd1586ca65dde09742f9b5c471 (diff)
CTAN sync 202303270303
Diffstat (limited to 'support/texlab')
-rw-r--r--support/texlab/CHANGELOG.md7
-rw-r--r--support/texlab/Cargo.lock2
-rw-r--r--support/texlab/Cargo.toml2
-rw-r--r--support/texlab/src/features/symbol/types.rs12
-rw-r--r--support/texlab/src/server/options.rs2
-rw-r--r--support/texlab/texlab.14
-rw-r--r--support/texlab/texlab.pdfbin26342 -> 26434 bytes
7 files changed, 19 insertions, 10 deletions
diff --git a/support/texlab/CHANGELOG.md b/support/texlab/CHANGELOG.md
index 7853c1c9b6..39bb7e4e54 100644
--- a/support/texlab/CHANGELOG.md
+++ b/support/texlab/CHANGELOG.md
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [5.4.1] - 2023-03-26
+
+### Fixed
+
+- Do not return symbols with empty names (e. g. sections without name) ([#870](https://github.com/latex-lsp/texlab/issues/870))
+- Repair `textDocument/formatting` request ([#871](https://github.com/latex-lsp/texlab/issues/871))
+
## [5.4.0] - 2023-03-12
### Added
diff --git a/support/texlab/Cargo.lock b/support/texlab/Cargo.lock
index 59566d3b49..7349b26f7d 100644
--- a/support/texlab/Cargo.lock
+++ b/support/texlab/Cargo.lock
@@ -1593,7 +1593,7 @@ dependencies = [
[[package]]
name = "texlab"
-version = "5.4.0"
+version = "5.4.1"
dependencies = [
"anyhow",
"assert_unordered",
diff --git a/support/texlab/Cargo.toml b/support/texlab/Cargo.toml
index 00d1cc4e21..dfa23f744a 100644
--- a/support/texlab/Cargo.toml
+++ b/support/texlab/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "texlab"
description = "LaTeX Language Server"
-version = "5.4.0"
+version = "5.4.1"
license = "GPL-3.0"
readme = "README.md"
authors = [
diff --git a/support/texlab/src/features/symbol/types.rs b/support/texlab/src/features/symbol/types.rs
index 96b26be153..9e8ea28792 100644
--- a/support/texlab/src/features/symbol/types.rs
+++ b/support/texlab/src/features/symbol/types.rs
@@ -85,11 +85,13 @@ impl InternalSymbol {
while i < container.len() {
let symbol = &mut container[i];
- if util::regex_filter::filter(
- &symbol.name,
- &config.allowed_patterns,
- &config.ignored_patterns,
- ) {
+ if !symbol.name.is_empty()
+ && util::regex_filter::filter(
+ &symbol.name,
+ &config.allowed_patterns,
+ &config.ignored_patterns,
+ )
+ {
Self::filter(&mut symbol.children, config);
i += 1;
} else {
diff --git a/support/texlab/src/server/options.rs b/support/texlab/src/server/options.rs
index fb7260ebf2..87f49691f0 100644
--- a/support/texlab/src/server/options.rs
+++ b/support/texlab/src/server/options.rs
@@ -160,7 +160,7 @@ impl From<Options> for Config {
LatexFormatter::Latexindent => Formatter::LatexIndent,
};
- config.formatting.tex_formatter = match value.bibtex_formatter {
+ config.formatting.bib_formatter = match value.bibtex_formatter {
BibtexFormatter::None => Formatter::Null,
BibtexFormatter::Texlab => Formatter::Server,
BibtexFormatter::Latexindent => Formatter::LatexIndent,
diff --git a/support/texlab/texlab.1 b/support/texlab/texlab.1
index 88d329d360..4f7196658d 100644
--- a/support/texlab/texlab.1
+++ b/support/texlab/texlab.1
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13.
-.TH TEXLAB "1" "March 2023" "texlab 5.4.0" "User Commands"
+.TH TEXLAB "1" "March 2023" "texlab 5.4.1" "User Commands"
.SH NAME
-texlab \- manual page for texlab 5.4.0
+texlab \- manual page for texlab 5.4.1
.SH SYNOPSIS
.B texlab
[\fI\,OPTIONS\/\fR]
diff --git a/support/texlab/texlab.pdf b/support/texlab/texlab.pdf
index 9cec928f80..42c4d34fe5 100644
--- a/support/texlab/texlab.pdf
+++ b/support/texlab/texlab.pdf
Binary files differ