You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't override sticky scroll settings if intellisense is disabled, to avoid conflicts with Clangd #13574
When both Clangd and the Micosoft's C/C++ extension are installed, the latter messes with the sticky scroll settings, prevending Clangd from displaying it properly.
This happens even with "C_Cpp.intelliSenseEngine": "disabled", which is probably undesirable.
I suggest disabling this behavior when intellisense is disabled.
How to repro:
Install both the MS C/C++ extension and Clangd. Ensure Clangd is working.
Disable intellisense when prompted (MS extension suggests this when it sees clangd).
Trigger sticky scroll. Ensure that you follow the style where {s are on separate lines.
Observe that the sticky scroll only displays the {s instead of the function signatures:
changed the title [-]Don't override sticky scroll settings if intellisense is disabled[/-][+]Don't override sticky scroll settings if intellisense is disabled, to avoid conflicts with Clangd[/+]on Apr 30, 2025
This might be fixable via checking to see if the stick scroll setting value is coming from our extension (if possible via the inspect APIs?) and then if intelliSenseEngine == disabling setting the setting to the VS Code default instead. The main concern is making sure a setting set by the user isn't being overwritten. I think the IntelliSense disabling message is from the Clangd extension, so potentially they could fix this by also setting the sticky scroll setting at the same time they set the intelliSenseEngine setting.
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.
Changing this setting for language works for me, and I use clangd with IntelliSenseEngine disabled.
For cpp search @id:editor.stickyScroll.defaultModel @lang:cpp sticky scroll in the settings and change to outlineModel
the clangd outlineModel only shows namespaces/functions, whereas the defaultModel also shows statements (if, while, switch, etc...).
can we have an option where the defaultModel detects if the line only contains whitespace/open-brace/comment and shows the previous non-whitespace/comment line instead ?
Activity
[-]Don't override sticky scroll settings if intellisense is disabled[/-][+]Don't override sticky scroll settings if intellisense is disabled, to avoid conflicts with Clangd[/+]sean-mcmanus commentedon Apr 30, 2025
Egor Mikhaylov (@adalisk-emikhaylov) The setting is overridden in our package.json at https://github.com/microsoft/vscode-cpptools/blob/main/Extension/package.json#L6073 so it's not dynamic or based on other settings. You can override it by using
and/or add a case for
[c]or[cuda-cpp].Did you have a suggestion on what else we should be doing?
adalisk-emikhaylov commentedon May 5, 2025
I see. I'm not too familiar with VSC extension development, so I don't know if there are better solutions.
Perhaps add a popup that asks if you want to enable this, if Clangd is detected? Similar to the popup that suggests disabling Intellisense?
Or at least warn about this in the existing popup.
github-actions commentedon Jun 4, 2025
Hey Sean McManus (@sean-mcmanus), this issue might need further attention.
Egor Mikhaylov (@adalisk-emikhaylov), you can help us out by closing this issue if the problem no longer exists, or adding more information.
sean-mcmanus commentedon Jun 4, 2025
This might be fixable via checking to see if the stick scroll setting value is coming from our extension (if possible via the inspect APIs?) and then if intelliSenseEngine == disabling setting the setting to the VS Code default instead. The main concern is making sure a setting set by the user isn't being overwritten. I think the IntelliSense disabling message is from the Clangd extension, so potentially they could fix this by also setting the sticky scroll setting at the same time they set the intelliSenseEngine setting.
vscode settings: Fix sticky scroll with clangd microsoft/vscode-cppto…
github-actions commentedon Aug 4, 2025
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.
github-actions commentedon Aug 5, 2025
This feature request has received enough votes to be added to our backlog.
bartlomiejszozda commentedon Aug 22, 2025
Changing this setting for language works for me, and I use clangd with IntelliSenseEngine disabled.
For cpp search
@id:editor.stickyScroll.defaultModel @lang:cpp sticky scrollin the settings and change tooutlineModelSpongman commentedon Jan 31, 2026
the clangd
outlineModelonly shows namespaces/functions, whereas thedefaultModelalso shows statements (if, while, switch, etc...).can we have an option where the defaultModel detects if the line only contains whitespace/open-brace/comment and shows the previous non-whitespace/comment line instead ?