Commit graph

23 commits

Author SHA1 Message Date
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
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
Patrick Förster
c64a8e73f1
Fix opening untitled documents (#1243) 2024-10-23 19:20:56 +02:00
Nolan
d9ac8a1658
Handle \bibitem when checking undefined references (#1244)
Add a bibitem list to the latex Semantics struct, bibitem to CommandName and SyntaxKind enums, and handlers for processing bibitem nodes in a tex document.
Added checks against the bibitem list for undefined references and unused references.
2024-10-20 20:32:35 +02:00
Patrick Förster
3d6def1849
Allow ignoring diagnostics with magic comments (#1211)
With this changeset, using `%texlab: ignore` magic comment suppresses diagnostics from all sources for the current and the next line.

Fixes #1092.
Fixes #1131.
2024-10-07 10:15:56 +02:00
Patrick Förster
fd49c49cf4
Don't treat \label inside macros as label commands (#1120) 2024-05-21 20:38:57 +02:00
Patrick Förster
fb78a16541
Fix clippy warnings (#1113) 2024-05-10 18:41:45 +02:00
Patrick Förster
025242be9d
Fix "needless borrow" clippy warnings (#1112) 2024-05-10 18:06:46 +02:00
Patrick Förster
87b6733953
Improve reliability of log file watcher (#1099)
- Cleanup diagnostics of deleted files properly
- Support directories in notify change events
2024-04-27 22:56:46 +02:00
Patrick Förster
45f8b77c8a
Don't report errors for citations with macro args (#1086) 2024-04-21 14:34:15 +02:00
Patrick Förster
da243204ca
Improve project detection algorithm (#1035)
- Improve support for `Tectonic.toml` projects
- Cache project detection results between LSP requests
2024-03-17 09:53:05 +01:00
Patrick Förster
726af3a517
Fix clearing stale diagnostics (#1043)
The `MultiMap::retain function` removes the entire entry if the associated `Vec` is empty. Switching to plain `HashMap` fixes the issue.

Fixes #1042.
2024-03-16 09:48:29 +01:00
Patrick Förster
4e8d065fcc
Don't report diagnostics for distro files (#1030) 2024-03-08 20:28:02 +01:00
Patrick Förster
d79a43e5b7 Refactor diagnostics module 2024-01-27 21:55:15 +01:00
Patrick Förster
ab18e66cd0
Don't report errors when using \nocite{*} (#966)
See #964.
2023-11-23 21:44:15 +01:00
Patrick Förster
2117fa41a0 Refactor existing tests 2023-11-11 20:17:03 +01:00
Patrick Förster
99ed167dd4
Don't vendor line index data structure (#946) 2023-11-05 18:55:23 +01:00
Patrick Förster
b97e85eb43 Verify text edit range in completion tests 2023-09-24 19:46:29 +02:00
Patrick Förster
20672c1132 Don't report unused entries for huge bib files 2023-08-11 21:21:41 +02:00
Patrick Förster
36c18bb75a Fix some clippy warnings 2023-08-06 09:59:40 +02:00
Patrick Förster
9960068ef2
Report diagnostics for duplicate labels (#908) 2023-07-29 09:57:26 +02:00
Patrick Förster
449ec7a33e
Report errors for duplicate BibTeX entry keys (#904) 2023-07-23 15:27:07 +02:00
Patrick Förster
d32de1548a
Add additional diagnostics (#899)
* Refactor reporting of syntax errors
* Report diagnostics for unused or undefined labels
* Report undefined citation and unused entries
* Use indexed citations when processing requests
* Use new "unnecessary" diagnostic tag
* Add tests for diagnostics module
2023-06-29 19:22:05 +02:00