LaurentTreguier / vscode-uncrustify

Code format using uncrustify
66 stars 10 forks source link

Parse ${workspaceRoot} in configPath #14

Closed wangxufire closed 6 years ago

wangxufire commented 6 years ago

another problem: can't open config file when set configPath in workspace's .vscoe settings.json

LaurentTreguier commented 6 years ago

Is parsing ${workspaceRoot} necessary ? I am thinking that having a relative path for uncrustify.configPath should automatically assume that the path is relative to the workspace root

wangxufire commented 6 years ago

It doesn't work when I set a relative path. I workd with multiroot workspace.

LaurentTreguier commented 6 years ago

Sorry, I expressed myself badly. It doesn't work for now indeed, but I was thinking that I could just change the extension to interpret relative paths as relative to the current workspace.

wangxufire commented 6 years ago

Excellent! Thanks.