Commit graph

492 commits

Author SHA1 Message Date
dependabot[bot]
540b33a251
Bump libc from 0.2.173 to 0.2.174 (#1424) 2025-06-24 18:50:08 +00:00
Patrick Förster
7f09abcd0f
Handle command definitions without curly braces (#1422)
Parse structures like \newcommand\foo{bar} correctly.
2025-06-24 20:08:42 +02:00
Patrick Förster
6013783776
Make sort order of workspace symbols deterministic (#1423) 2025-06-24 19:57:19 +02:00
dependabot[bot]
ac70d2364e
Bump clap from 4.5.39 to 4.5.40 (#1417) 2025-06-14 09:38:21 +00:00
dependabot[bot]
64c0c3ba53
Bump thiserror from 2.0.11 to 2.0.12 (#1416) 2025-06-14 09:37:58 +00:00
dependabot[bot]
c0e0b81207
Bump multimap from 0.10.0 to 0.10.1 (#1418) 2025-06-14 09:37:35 +00:00
dependabot[bot]
237eda72a1
Bump parking_lot from 0.12.3 to 0.12.4 (#1412) 2025-06-14 09:34:22 +00:00
dependabot[bot]
8a6117f9f5
Bump libc from 0.2.171 to 0.2.173 (#1413) 2025-06-14 09:33:32 +00:00
Patrick Förster
28e952339f
Only return LoationLink if the client supports it (#1411) 2025-06-14 11:25:53 +02:00
Patrick Förster
6d1a8cb0be
Handle local TEXINPUTS in latexmkrc (#1377)
Extract the context provided by latexmkrc to infer additions to TEXINPUTS and BIBINPUTS.

Fixes #1369.
2025-06-14 10:52:37 +02:00
dependabot[bot]
bdcbc1549a
Bump clap from 4.5.35 to 4.5.39 (#1403) 2025-06-14 08:51:39 +00:00
dependabot[bot]
fbb1b74781
Bump bstr from 1.11.3 to 1.12.0 (#1385) 2025-06-14 08:51:18 +00:00
dependabot[bot]
148356c185
Bump serde_repr from 0.1.19 to 0.1.20 (#1388) 2025-06-14 08:50:18 +00:00
dependabot[bot]
c5ceb7f47a
Bump chrono from 0.4.39 to 0.4.41 (#1397) 2025-06-14 08:50:10 +00:00
dependabot[bot]
fe91804342
Bump flate2 from 1.0.35 to 1.1.2 (#1408) 2025-06-14 08:49:51 +00:00
Lua 🌒
70435c4bd8
support latexmk version 4.86 (#1410)
Some checks failed
CI / Build (aarch64-unknown-linux-gnu) (push) Failing after 4s
CI / Build (armv7-unknown-linux-gnueabihf) (push) Failing after 4s
CI / Build (x86_64-unknown-linux-gnu) (push) Failing after 3s
CI / Build (x86_64-unknown-linux-musl) (push) Failing after 4s
CI / Build (aarch64-apple-darwin) (push) Has been cancelled
CI / Build (x86_64-apple-darwin) (push) Has been cancelled
CI / Build (aarch64-pc-windows-msvc) (push) Has been cancelled
CI / Build (i686-pc-windows-msvc) (push) Has been cancelled
CI / Build (x86_64-pc-windows-msvc) (push) Has been cancelled
CI / MSRV (push) Has been cancelled
Unfortunately, version 4.86 changed the string for -dir-report-only again, breaking the parser.
2025-06-13 16:34:22 +02:00
Henry Chu
d1f6f1c184
Recognize wide float environments in label parsing (#1404)
Some checks failed
CI / Build (aarch64-unknown-linux-gnu) (push) Failing after 4s
CI / Build (armv7-unknown-linux-gnueabihf) (push) Failing after 3s
CI / Build (x86_64-unknown-linux-gnu) (push) Failing after 2s
CI / Build (x86_64-unknown-linux-musl) (push) Failing after 2s
CI / Build (aarch64-apple-darwin) (push) Has been cancelled
CI / Build (x86_64-apple-darwin) (push) Has been cancelled
CI / Build (aarch64-pc-windows-msvc) (push) Has been cancelled
CI / Build (i686-pc-windows-msvc) (push) Has been cancelled
CI / Build (x86_64-pc-windows-msvc) (push) Has been cancelled
CI / MSRV (push) Has been cancelled
2025-06-08 12:45:02 +02:00
Jonáš Dujava
731bd890cd
Support more OldCommandDefinition-s (#1402)
Some checks failed
CI / Build (aarch64-unknown-linux-gnu) (push) Failing after 5s
CI / Build (armv7-unknown-linux-gnueabihf) (push) Failing after 3s
CI / Build (x86_64-unknown-linux-gnu) (push) Failing after 2s
CI / Build (x86_64-unknown-linux-musl) (push) Failing after 3s
CI / Build (aarch64-apple-darwin) (push) Has been cancelled
CI / Build (x86_64-apple-darwin) (push) Has been cancelled
CI / Build (aarch64-pc-windows-msvc) (push) Has been cancelled
CI / Build (i686-pc-windows-msvc) (push) Has been cancelled
CI / Build (x86_64-pc-windows-msvc) (push) Has been cancelled
CI / MSRV (push) Has been cancelled
Added some additional \def-like and \let-like macros.

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2025-06-01 09:03:39 +02:00
Jakub Charvat
86d5a3c9ad
Improve workspace/symbol filtering (#1396)
* Split symbol name for workspace_symbols keywords query

* Filter workspace_symbols query as substring of keyword instead of ==

* Add tests for workspace symbol name filtering
2025-04-26 09:08:57 +02:00
Nolan
a1fb5ec807
Trigger diagnostics after distro loading (#1380)
After distro detection, calls update_workspace() to update diagnostics after bib files from $BIBINPUTS are read.
Notifies the client that it is still parsing dependencies.
2025-04-11 19:57:05 +02:00
dependabot[bot]
60a3a72a4f
Bump libc from 0.2.169 to 0.2.171 (#1363) 2025-04-07 19:40:48 +00:00
dependabot[bot]
1e506632c4
Bump clap from 4.5.27 to 4.5.35 (#1375) 2025-04-07 19:39:00 +00:00
Patrick Förster
6434de9634
Add one-based line number to inverse search (#1374)
- Add `--line0` and `--line1` command line arguments to texlab inverse-search
- For compatibility, `--line` stays an alias for `--line0`
2025-04-07 21:38:40 +02:00
Nolan
a3f4e074b4
Handle nested curly_group_word_list (#1373)
Fixes issue #1360

Modifies curly_group_word_list() to check for Token::LCurly and create a child curly_group_word_list node.
In cst.rs we change the CurlyGroupWordList::keys() function to check descendants instead of only checking children so that the label reference is not missed by the parser.
2025-04-05 08:57:26 +02:00
Henry Chu
c45c857851
Add bounds check to prevent panic in token_at_offset (#1367)
TexLab will panic if it receives a completion request with an invalid offset. This PR prevents the panic by checking if the offset is in range before passing it to `token_at_offset`.
2025-03-23 09:07:51 +01:00
Johannes Altmanninger
1f2c9d7c47
Capabilities for LSP extensions (#1340)
Clients sending textDocument/build to a server that doesn't support
it may receive an error.  In a multi-server setup, users expect to
send the message only to servers that support it.  Add a capability
to enable this use case.

Closes #1328
2025-02-12 17:55:33 +01:00
hakan-demirli
29bdb931e8
Allow turning off diagnostics for specific regions
Add `% texlab: warnings off` and `% texlab: warnings on` magic comments.
2025-02-02 09:15:29 +01:00
zefr0x
e01b909c6a
Use XDG_RUNTIME_DIR for texlab.sock in linux (#1331) 2025-01-29 19:22:27 +01:00
Patrick Förster
cdca6d60a5
Bump notify from 6.1.1 to 8.0.0 (#1324) 2025-01-21 20:54:50 +01:00
Patrick Förster
1b8ca8eac3
Add tex-fmt as formatter option (#1321) 2025-01-21 20:43:01 +01:00
dependabot[bot]
ef80c7af6b
Bump clap from 4.5.26 to 4.5.27 (#1323) 2025-01-21 17:32:16 +00:00
dependabot[bot]
bfbe0ee5f7
Bump lsp-server from 0.7.7 to 0.7.8 (#1318) 2025-01-21 17:12:16 +00:00
dependabot[bot]
ffd3c0a6d1
Bump dirs from 5.0.1 to 6.0.0 (#1316) 2025-01-19 21:07:53 +00:00
dependabot[bot]
8a9bd110b1
Bump chrono from 0.4.38 to 0.4.39 (#1317) 2025-01-18 22:08:59 +00:00
Patrick Förster
55187bc16a
Add setting for custom label reference range cmds (#1312)
Add `texlab.experimental.labelReferenceRangeCommands`.

Fixes #1210.
2025-01-18 23:00:03 +01:00
dependabot[bot]
f56d66a11c
Bump libc from 0.2.167 to 0.2.169 (#1300) 2025-01-18 21:51:05 +00:00
dependabot[bot]
3147d3967b
Bump logos from 0.14.2 to 0.15.0 (#1287) 2025-01-18 21:40:54 +00:00
dependabot[bot]
99fbc73536
Bump thiserror from 2.0.3 to 2.0.11 (#1308) 2025-01-18 21:39:56 +00:00
dependabot[bot]
5dc62b16d3
Bump fern from 0.7.0 to 0.7.1 (#1295) 2025-01-18 21:39:37 +00:00
dependabot[bot]
3f78c820fa
Bump bstr from 1.11.0 to 1.11.3 (#1306) 2025-01-18 21:39:19 +00:00
dependabot[bot]
0fabb5cfb8
Bump clap from 4.5.21 to 4.5.26 (#1310) 2025-01-18 21:39:08 +00:00
Patrick Förster
d510c53f24
Allow user-defined document symbol environments (#1311)
Add `texlab.symbols.customEnvironments` setting.

Fixes #1292.
2025-01-18 22:38:43 +01:00
Johannes Altmanninger
0532115ce4
Improve error message when build.executable doesn't exist (#1303)
texlab outputs on standard error:

	ERROR - Failed to compile document "file:///path/to/test.tex":
	Unable to run compiler: No such file or directory (os error 2)

which is confusing because the actual issue is that "latexmk" was
not found.  Fix that by adding the program name.  This might not be
as appropriate for all possible io::Error kinds but it's probably
useful for a few of them.
2024-12-31 16:25:59 +01:00
Nolan
2f79d329bf
Fix parsing links with URL encoding (#1291)
Adds a HREF token to represent urls (and unit tests for the parser).
2024-12-14 21:56:43 +01:00
dependabot[bot]
79bb8bebe6
Bump pathdiff from 0.2.2 to 0.2.3 (#1282) 2024-12-03 19:07:18 +00:00
dependabot[bot]
9241257175
Bump flate2 from 1.0.34 to 1.0.35 (#1277) 2024-12-03 19:06:32 +00:00
dependabot[bot]
24f3e1293f
Bump libc from 0.2.162 to 0.2.167 (#1283) 2024-12-03 19:04:42 +00:00
dependabot[bot]
53b82b60cb
Bump clap from 4.5.20 to 4.5.21 (#1273) 2024-12-03 19:04:28 +00:00
dependabot[bot]
08389f1c33
Bump bstr from 1.10.0 to 1.11.0 (#1274) 2024-12-03 18:58:06 +00:00
Patrick Förster
dcd40b65b2
Fix named elided lifetime warning (#1285) 2024-12-03 19:57:15 +01:00