-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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.", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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?
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.