Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recursive substitution of config variables #659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timiimit
Copy link

I am using CMake Tools extension which allows to set cmake.buildDirectory config variable.
I wanted to specify location of compile_commands.json through settings like so:

"clangd.arguments": [
	"--compile-commands-dir=${config:cmake.buildDirectory}"
],

but I noticed that variables get resolved only once. cmake.buildDirectory can in turn contain another variable such as ${workplaceFolder} in my case. For this, a recursive resolution would be needed.

I'm not sure whether a recursion limit would be desired or if PR breaks in any weird cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant