-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prune dependency graph of un-linked .tex files? Expose follow_package_links option in dependency graph builder? #1034
Comments
I would like to prune those nodes as well but at the moment, this would break in scenarios like these:
If you open
This would be possible without invasive changes. We could limit the reported diagnostics only to the currently opened projects. If we want to actively prune unreferenced files, we need to avoid walking up the directory tree for TeX files and instead use something like |
This flag was introduced in order to avoid having to load the entire TeX distro if you reference a package and are using something like TinyTeX where the distro is part of your home directory. You can use |
Hi,
I had two feature requests related to how Texlab populates the workspace with documents in the project.
.tex
files that are not being used in my active project. For example, this often occurs for me when an 'old' version of a section or appendix is replaced by a new one; the new file gets introduced to the\input{...}
statements, and the old file is left around in case text/etc. is needed from it later (or perhaps simply by negligence), although it is no longer\input
to the project anywhere. These spurious warnings/errors clutter the diagnostics menu, and they even tend to produce additional such errors when they are no longer used due to things like broken references (which multiply as the rest of the project changes).It would be nice if there were a way to filter these -- for example, it seems that it could be possible to prune nodes from the workspace dependency graph built in crates/base-db/src/graph.rs (etc.) that have no connections to "triple octagon" files in the workspace. For my use case, it would also suffice if diagnostics for these disconnected nodes could be suppressed with a new option (not sure if this is possible).
follow_package_links
in crates/base-db/src/graph.rs is presumably disabled. Could there be a way to expose this option, say via a workspace/executeCommand? Is this expected to hurt performance greatly?Thanks for your work on Texlab!
The text was updated successfully, but these errors were encountered: