misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

Relative path's not detected on OS X #54

Open rvoortman opened 7 years ago

rvoortman commented 7 years ago

I've tried adding a relative path in the config to the rubocop.yml file, but that doesn't seem to work.

~/src/.rubocop.yml file does not exist. Ignoring...

however, setting the full path works just fine: "ruby.rubocop.configFilePath": "/Users/robbinvoortman/src/.rubocop.yml"

I think this is a bug, but I'm not sure if this is intended. This happens on Visual Studio Code Version 1.15.0 (1.15.0) and extension version 0.4.0.

brutuscat commented 6 years ago

Also I noticed that variables like ${workspaceRoot} do not work neither. If I work on several projects, usually each of them have their own . rubocop.yml file and I always want to use the "local" settings instead of mine.

drewlustro commented 2 years ago

@brutuscat – VSCode has notoriously lacked this feature for six years. VSCode supports robust predefined environment variables in tasks.json launch.json, but does not in (workspace) settings.json

microsoft/vscode#2809