From 8ee50414f6054311ac11efe8ea6360c25c622498 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 27 Mar 2023 03:03:42 +0000 Subject: CTAN sync 202303270303 --- support/texlab/CHANGELOG.md | 7 +++++++ support/texlab/Cargo.lock | 2 +- support/texlab/Cargo.toml | 2 +- support/texlab/src/features/symbol/types.rs | 12 +++++++----- support/texlab/src/server/options.rs | 2 +- support/texlab/texlab.1 | 4 ++-- support/texlab/texlab.pdf | Bin 26342 -> 26434 bytes 7 files changed, 19 insertions(+), 10 deletions(-) (limited to 'support/texlab') 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 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 Binary files a/support/texlab/texlab.pdf and b/support/texlab/texlab.pdf differ -- cgit v1.2.3