richterger / Perl-LanguageServer

Language Server for Perl
Other
220 stars 53 forks source link

Parser does not support relative/nested ignoreDirs #209

Open Arnatious opened 1 month ago

Arnatious commented 1 month ago
    "perl.ignoreDirs": [
        ".vscode",
        ".git",
        ".svn",
        "test/TMP",
    ],

won't work as expected for the tree

.
└── lib
└── test
    └── TMP
        └── etc

https://github.com/richterger/Perl-LanguageServer/blob/6e43563335fa5effef9e227312317cd6179107b7/lib/Perl/LanguageServer/Parser.pm#L541

$d in the above will only ever be the name of the the directory under question, in this case "TMP", instead of a absolute or relative path, which won't match. Can this be changed to support absolute/relative paths (and maybe globbing), or have the limitations documented in the tooltip in vscode?

richterger commented 2 weeks ago

Pull requests are welcome...