Closed dseynhae closed 1 year ago
This is the problem that the environment is not passed to perltidy. Set HOME in env in your perl extention config and it will work. It's on my TODO list to change the enviromentent setup for the next release
I see... PerlTidy is using the variable, and it simply isn't there...
When I set it in "perl.env", then the extension passes it on to PerlTidy; Thank you.
Environment is now passed per default. This can be disabled by disablesPassEnv
, see 29ad712a55348a1ba06a375bbf5e00fb62abbf05
I'm seeing the problem using VS Code Remote WSL and VS Code Remote SSH:
In my
$HOME/.perltidyrc
on those machines I have a simple setting to have 2-space indentation:When running
perltidy
from the command line, I'm getting the correct result. I also get the expected result with theSimple Perl
extension...⚠️ However when formatting with the
Perl
extension I'm still getting 4-space indentation, which leads me to believe that we're bypassing the configuration file...