rust_hdl icon indicating copy to clipboard operation
rust_hdl copied to clipboard

Ignore missing files

Open LDprg opened this issue 3 weeks ago • 2 comments

As student I use this lsp for some university assignments. The assignments have all the same structure, except some of them are missing a test bench. However I use the same config file symbolical linked in every sub assignment folder, which fails on the assignment without a test bench.

Therfore it would be nice to have an option to ignore missing files (at least for definitions with wildcards).

LDprg avatar Nov 28 '25 23:11 LDprg

If I understand you correctly, this is already possible (see the exclude configuration option). If you want to skip a file from being analysed altogether, you can achieve this by excluding it in the vhdl_ls.toml file and setting the nonProjectFiles to ignore (unfortunately this approach isn't documented anywhere) Doe this help you already?

Schottkyc137 avatar Nov 29 '25 17:11 Schottkyc137

That's not exactly what I want. I would like to ignore that my wildcard isn't actually selecting any files (so the problem is not a file, but a missing one), since this throws an error in every normal vhdl file on open.

LDprg avatar Nov 29 '25 22:11 LDprg