-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Feature: Auto-completeLanguage ServiceVisual Studio CodeCaused by (or depends on changes from) VS CodeCaused by (or depends on changes from) VS Codebugby designexternal
Description
Environment
- OS and Version:
Mac OS Sonoma 14.12.1
- VS Code Version:
Version: 1.96.2 (Universal)
- C/C++ Extension Version:
Identifier
ms-vscode.cpptools
Version
1.22.11
Last Updated
2024-12-30, 10:54:57
Size
211.0 MB
- If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
Cannot see inline method descriptions.
Steps to reproduce:
- Follow the steps in https://code.visualstudio.com/docs/cpp/config-clang-mac
- Try to explore Explore IntelliSense
Expected behavior:
Inline method description appears.

Actual behavior:

Configuration and Logs
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/usr/local/include/**",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1"
],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/opt/homebrew/Cellar/gcc/14.2.0_1/bin/g++-14",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-gcc-arm64"
}
],
"version": 4
}
C/C++: Log diagnostics -> Empty
Other Extensions
No other extensions installed.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Feature: Auto-completeLanguage ServiceVisual Studio CodeCaused by (or depends on changes from) VS CodeCaused by (or depends on changes from) VS Codebugby designexternal
Type
Projects
Status
No status
Milestone
Relationships
Development
Select code repository
Activity
sean-mcmanus commentedon Dec 31, 2024
@alexpalco This appears to be an issue with the VS Code UI itself and how it decides to render the UI text. The repro is unrelated to "inline" functions and can occur with non-inline functions or not occur with inline functions. The comlete UI text is also visible if you hover over it.
It repros whenever there is an overload (i.e. the name has
\n
in it) and the name has too many characters such that it can't be rendered without going to the next line, such as with this code below:With one less character it is okay:
Did you want to file a bug on VS Code at https://github.com/microsoft/vscode/issues or did you want us to file a bug? Or did you have an idea on how we could modify the completion text such that the bug no longer repros?
alexpalco commentedon Dec 31, 2024
Hi @sean-mcmanus , many thanks for your prompt response. So at first I thought the issue was with the C++ plugin, like it was not able to go thru the headers and populate the intelisense database properly. Since this is due to how VS Code treats lines with many characters then it would make sense to file a bug with VS Code. I wonder though if this is the case in this scenario, this is the code in question is the taken from the VSCode site itself. https://code.visualstudio.com/docs/cpp/config-clang-mac
Would be good to know from Mac OS users using VS Studio and the plugin if they have access to such comments to begin with. I also spotted this post in stack overflow from 2 yers ago btw, the OP had the same issue with showing function documentation. https://stackoverflow.com/questions/73326790/visual-studio-code-intellisense-doesnt-show-function-documentation-for-c?rq=3.
If it ever got fixed i might have just come back as a regression.