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 reduceRecursiveIncludes setting #13306

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Feb 22, 2025

Adding as a fully-fledged setting, for now. If we encounter issues when testing with it set to false, we could hide the setting. Requires the corresponding PR in the language server.

@@ -809,6 +809,7 @@
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
]
},
"c_cpp.configuration.reduceRecursiveIncludes.markdownDescription": "Indicates whether recursive include paths should be reduced to only those currently referenced by the translation unit. If enabled, performance is impacted if the database needs to be populated to determine headers used. If disabled, performance may be impacted due to passing a large number of include paths to the IntelliSense process.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"enabled" and "disabled" should be in markdown/backticks like the other settings value examples.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or true/false as mentioned in the other thread.

"type": "boolean",
"default": true,
"markdownDescription": "%c_cpp.configuration.reduceRecursiveIncludes.markdownDescription%",
"scope": "window"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have an enum like

                        "enum": [
                            "default",
                            "enabled",
                            "disabled"
                        ],

I'm not sure if "default" is needed (we could potentially use that to auto-set the default from an experiment).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh -- it's a bool -- your description references "enabled"/"disabled"? Should that be true/false instead?

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

Successfully merging this pull request may close these issues.

2 participants