richterger / Perl-LanguageServer

Language Server for Perl
Other
220 stars 53 forks source link

resolve workspaceFolder in perlCmd and perlInc #130

Closed ecos-ps closed 2 years ago

ecos-ps commented 2 years ago

Add support for resolving ${workspaceFolder} in perl-Settings. This might come handy.

I used the code snippet from @jfg118 to accomplish the correct substitution and added functionality for perlCmd (#25) and perlInc (#128). Thanks to @ghandmann for opening the issue #128 a few days ago, that brought up the idea again.

afgit commented 1 year ago

Unfortunately, the patch does not work for me. ${workspaceFolder} is not replaced by the workspace folder in perlInc, the error message still is:

Can't locate xxx.pm in @INC (you may need to install the xxx module) (@INC contains: ${workspaceFolder}/yyy ...) at - line 7.