Skip to content

c_cpp_properties.json vscode variables #12997

Answered by LostTime76
LostTime76 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I talked myself out of the need for what I was looking for.. The contract is that the workspace must be opened with the proper path, otherwise it won't work.

My use case was perhaps generating / consuming the c_cpp_properties.json file using a custom tool and the tool being able to resolve a subset of the vscode variables. Since the tool would have no concept of ${worskspaceFolder}, a variable just resolving to the current path of the file directly would be better. I guess the tool could just resolve ${workspaceFolder} as the directory above the directory the c_cpp_properties.json is within as a special case.. because in order for even vscode to correctly work, the correct folder …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@sean-mcmanus
Comment options

@bobbrow
Comment options

@sean-mcmanus
Comment options

Comment options

You must be logged in to vote
3 replies
@bobbrow
Comment options

@LostTime76
Comment options

Answer selected by bobbrow
@bobbrow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants