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

Configurable C_cpp_properties.json Location #12494

Closed
hacantorcooke opened this issue Jul 22, 2024 · 5 comments
Closed

Configurable C_cpp_properties.json Location #12494

hacantorcooke opened this issue Jul 22, 2024 · 5 comments
Assignees
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Feature Request Language Service more info needed The issue report is not actionable in its current state

Comments

@hacantorcooke
Copy link

Feature Request

Allow a workspace setting to point to the c_cpp_properties.json rather than requiring it to always live in the root of the folder. Or allow the entire c_cpp_properties.json to be embedded in the workspace JSON

Maybe this is already possible and I missed it?

@hacantorcooke hacantorcooke changed the title Configurable C_cpp_properties.json Configurable C_cpp_properties.json Location Jul 22, 2024
@sean-mcmanus
Copy link
Collaborator

@hacantorcooke We have C_Cpp.default.* settings that correspond to the properties in c_cpp_properties.json -- is using those sufficient for you?

@sean-mcmanus sean-mcmanus self-assigned this Jul 24, 2024
@sean-mcmanus sean-mcmanus added Language Service Feature Request more info needed The issue report is not actionable in its current state Feature: Configuration An issue related to configuring the extension or IntelliSense labels Jul 24, 2024
@hacantorcooke
Copy link
Author

hacantorcooke commented Jul 25, 2024

@sean-mcmanus Default settings don't include configurations so doesn't work for me. Basically looking for a way to get configurations to be specific to the workspace (or let the workspace point to the configurations).

Letting it live in the workspace JSON also works.

I see there's "configurationProvider" which could maybe work if it could be told to point to a JSON with the configs? It seems like it has to be an extension currently.

Basically, this is what's in my C_cpp_properties.json. Would like to make it so that this information doesn't have to be in the root of the open folder
image

Copy link

Hey @sean-mcmanus, this issue might need further attention.

@hacantorcooke, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Copy link

This issue has been closed because it needs more information and has not had recent activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
@github-project-automation github-project-automation bot moved this to Done in cpptools Sep 25, 2024
@johndv7
Copy link

johndv7 commented Sep 30, 2024

We work on a team, and it would be extremely helpful to have workspace information follow the workspace, instead of each developer having to individually setup their include paths, compilers, etc. When you have 20 projects, with different compilers and configurations, it's a real problem keeping everything working well.

There seems to be a lot of resistance to this, but I don't really understand why.

I'm not sure how the C_Cpp.default.* file would help. Perhaps a lot of us just don't understand how it's intended to be used?

EDIT:
I figured it out. Misunderstanding on my part about how this feature works. Pretty much, what you've implemented does what we need it to do. It's just not immediately obvious from the documentation how it's meant to be used when you don't spend a lot of time fiddling with the settings, etc.

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Feature Request Language Service more info needed The issue report is not actionable in its current state
Projects
Status: Done
Development

No branches or pull requests

3 participants