VScode $workspaceRoot variable is not being resolved

748 views Asked by At

I trying to configure my .rubocop.yml file for my workspace throught the configFilePath of the rubocop plugin, but the vscode is not resolving the variable ${workspaceRoot}.

This NOT works:

"ruby.rubocop.configFilePath": "${workspaceRoot}\\.rbenv\\.rubocop.yml"

This works:

"ruby.rubocop.configFilePath": "C:\\Users\\My_User\\My_Project\\.rbenv\\.rubocop.yml"
1

There are 1 answers

0
Zoie On

If you want the extension to look in the working dir you could also do:

"ruby.rubocop.configFilePath": "/.rubocop.yml"