diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-04 03:01:04 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-04 03:01:04 +0000 |
commit | db0fe20663f1bcb3fcf87c3fb05a727420edd203 (patch) | |
tree | e5abdee7535ece54123168f0fa9a21fa0a627464 /support/texlab/crates/symbols | |
parent | de2c50ca7889fda13da11c1ccf6bdbd199ba8c2b (diff) |
CTAN sync 202312040301
Diffstat (limited to 'support/texlab/crates/symbols')
-rw-r--r-- | support/texlab/crates/symbols/Cargo.toml | 9 | ||||
-rw-r--r-- | support/texlab/crates/symbols/src/document.rs | 1 | ||||
-rw-r--r-- | support/texlab/crates/symbols/src/workspace/sort.rs | 3 | ||||
-rw-r--r-- | support/texlab/crates/symbols/src/workspace/tests.rs | 10 |
4 files changed, 13 insertions, 10 deletions
diff --git a/support/texlab/crates/symbols/Cargo.toml b/support/texlab/crates/symbols/Cargo.toml index 19a9c44964..5386efdcf9 100644 --- a/support/texlab/crates/symbols/Cargo.toml +++ b/support/texlab/crates/symbols/Cargo.toml @@ -12,13 +12,14 @@ doctest = false [dependencies] base-db = { path = "../base-db" } distro = { path = "../distro" } -itertools = "0.11.0" -rowan = "0.15.11" +itertools = "0.12.0" +line-index = { path = "../line-index" } +rowan = "0.15.13" syntax = { path = "../syntax" } titlecase = "2.2.1" -url = "=2.3.1" +url = "2.5.0" [dev-dependencies] -regex = "1.9.1" +regex = "1.10.2" test-utils = { path = "../test-utils" } expect-test = "1.4.1" diff --git a/support/texlab/crates/symbols/src/document.rs b/support/texlab/crates/symbols/src/document.rs index b34974e019..e8f1087051 100644 --- a/support/texlab/crates/symbols/src/document.rs +++ b/support/texlab/crates/symbols/src/document.rs @@ -22,6 +22,7 @@ pub fn document_symbols(workspace: &Workspace, document: &Document) -> Vec<Symbo DocumentData::Aux(_) | DocumentData::Log(_) | DocumentData::Root + | DocumentData::Latexmkrc(_) | DocumentData::Tectonic => Vec::new(), }; diff --git a/support/texlab/crates/symbols/src/workspace/sort.rs b/support/texlab/crates/symbols/src/workspace/sort.rs index 0e24c25ac9..75d80a02eb 100644 --- a/support/texlab/crates/symbols/src/workspace/sort.rs +++ b/support/texlab/crates/symbols/src/workspace/sort.rs @@ -38,8 +38,9 @@ impl<'a> From<&'a Workspace> for ProjectOrdering<'a> { #[cfg(test)] mod tests { - use base_db::{util::LineCol, Owner}; + use base_db::Owner; use distro::Language; + use line_index::LineCol; use super::{ProjectOrdering, Url, Workspace}; diff --git a/support/texlab/crates/symbols/src/workspace/tests.rs b/support/texlab/crates/symbols/src/workspace/tests.rs index 26bdefa6b6..3fecd58a57 100644 --- a/support/texlab/crates/symbols/src/workspace/tests.rs +++ b/support/texlab/crates/symbols/src/workspace/tests.rs @@ -75,7 +75,7 @@ fn check(query: &str, expect: Expect) { } #[test] -fn filter_type_section() { +fn test_filter_type_section() { check( "section", expect![[r#" @@ -158,7 +158,7 @@ fn filter_type_section() { } #[test] -fn filter_type_figure() { +fn test_filter_type_figure() { check( "figure", expect![[r#" @@ -187,7 +187,7 @@ fn filter_type_figure() { } #[test] -fn filter_type_item() { +fn test_filter_type_item() { check( "item", expect![[r#" @@ -252,7 +252,7 @@ fn filter_type_item() { } #[test] -fn filter_type_math() { +fn test_filter_type_math() { check( "math", expect![[r#" @@ -299,7 +299,7 @@ fn filter_type_math() { } #[test] -fn filter_bibtex() { +fn test_filter_bibtex() { check( "bibtex", expect![[r#" |