Skip to content

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.

"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?

…nto coleng/reduceRecursiveIncludesSetting
@Colengms Colengms closed this Mar 5, 2025
@Colengms Colengms deleted the coleng/reduceRecursiveIncludesSetting branch March 5, 2025 23:57
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.

3 participants