Skip to content

Intellisense for <ranges> and <concepts> #6173

@celonymire

Description

@celonymire

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10 Build 19041.508
  • VS Code Version: 1.49.1
  • C/C++ Extension Version: v1.0.0
  • Other extensions you installed (and if the issue persists after disabling them): CMake Tools, CMake, indent-rainbow, Output Colorizer, Bracket Pair Colorizer 2
  • Does this issue involve using SSH remote to run the extension on a remote machine?: No
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
    The workspace contains a main.cpp

Steps to reproduce

  1. Go to the command palette and type C/C++: Edit Configurations (UI)
  2. Set the C++ standard to c++20
  3. Create a new file named main.cpp
  4. Paste the following code:
#include <ranges>

int main()
{
    std::
}
  1. Put the cursor after std:: and hit Ctrl+Space
  2. There is only align_val_t and nullptr_t in the intellisense suggestion where there should be an extra ranges namespace being shown

Expected behavior

ranges namespace should be shown in the intellisense suggestion

Logs
-------- Diagnostics - 2020-09-20, 12:54:22 p.m.
Version: 1.0.0
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "${workspaceFolder}/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "windowsSdkVersion": "10.0.19041.0",
    "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29304/bin/Hostx64/x64/cl.exe",
    "cStandard": "c11",
    "cppStandard": "c++20",
    "intelliSenseMode": "msvc-x64",
    "compilerArgs": [],
    "browse": {
        "path": [
            "${workspaceFolder}/**"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Translation Unit Mappings:
[ C:\Development\Ranges-Intellisense-Repro\main.cpp ]:
    C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
Translation Unit Configurations:
[ C:\Development\Ranges-Intellisense-Repro\main.cpp ]:
    Process ID: 15732
    Memory Usage: 11 MB
    Compiler Path: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29304/bin/Hostx64/x64/cl.exe
    Includes:
        C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\PREVIEW\VC\TOOLS\MSVC\14.28.29304\INCLUDE
        C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\UM
        C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\UCRT
        C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\SHARED
        C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\WINRT
        C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\CPPWINRT
    Defines:
        _DEBUG
        UNICODE
        _UNICODE
    Standard Version: ms_c++latest
    IntelliSense Mode: msvc-x64
Total Memory Usage: 11 MB

------- Workspace parsing diagnostics -------
Number of folders and files enumerated: 4833
Number of files discovered (not excluded): 4808
cpptools/didChangeCppProperties
Attempting to get defaults from compiler found on the machine: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29304/bin/Hostx64/x64/cl.exe'
Code browsing service initialized
Attempting to get defaults from compiler found on the machine: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29304/bin/Hostx64/x64/cl.exe'
  Folder: C:/PROGRAM FILES (X86)/MICROSOFT VISUAL STUDIO/2019/PREVIEW/VC/TOOLS/MSVC/14.28.29304/INCLUDE/* will be indexed
  Folder: C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/UM/ will be indexed
  Folder: C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/UCRT/ will be indexed
  Folder: C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/SHARED/ will be indexed
  Folder: C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/WINRT/ will be indexed
  Folder: C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/CPPWINRT/ will be indexed
  Folder: C:/DEVELOPMENT/RANGES-INTELLISENSE-REPRO/ will be indexed
textDocument/didOpen: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Populate include completion cache.
cpptools/activeDocumentChange: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Discovering files...
cpptools/textEditorSelectionChange
cpptools/getDocumentSymbols: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 2)
cpptools/getDocumentSymbols
  Processing folder (non-recursive): C:/PROGRAM FILES (X86)/MICROSOFT VISUAL STUDIO/2019/PREVIEW/VC/TOOLS/MSVC/14.28.29304/INCLUDE
sending compilation args for C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
  include: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\PREVIEW\VC\TOOLS\MSVC\14.28.29304\INCLUDE
  include: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\UM
  include: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\UCRT
  include: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\SHARED
  include: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\WINRT
  include: C:\PROGRAM FILES (X86)\WINDOWS KITS\10\INCLUDE\10.0.19041.0\CPPWINRT
  define: _DEBUG
  define: UNICODE
  define: _UNICODE
  stdver: ms_c++latest
  intelliSenseMode: msvc-x64
  Processing folder (recursive): C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/UM/
Checking for syntax errors: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Queueing IntelliSense update for files in translation unit of: C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
  Processing folder (recursive): C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/UCRT/
  Processing folder (recursive): C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/SHARED/
  Processing folder (recursive): C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/WINRT/
  Processing folder (recursive): C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.19041.0/CPPWINRT/
idle loop: reparsing the active document
  Processing folder (recursive): C:/DEVELOPMENT/RANGES-INTELLISENSE-REPRO/
  Discovering files: 4808 file(s) processed
  1 file(s) removed from database
Done discovering files.
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.
cpptools/getFoldingRanges: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 3)
cpptools/getDocumentSymbols: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 4)
cpptools/getDocumentSymbols
cpptools/getSemanticTokens: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 5)
cpptools/fileCreated: file:///c%3A/Users/Sam%20Huang/AppData/Roaming/Code/logs/20200920T125253/sharedprocess.log
Checking for syntax errors: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Queueing IntelliSense update for files in translation unit of: C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
cpptools/getDocumentSymbols: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 6)
cpptools/getDocumentSymbols
cpptools/getFoldingRanges: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 7)
cpptools/finishUpdateSquiggles
Error squiggle count: 1
Update IntelliSense time (sec): 0.619
cpptools/fileCreated: file:///c%3A/Users/Sam%20Huang/AppData/Roaming/Code/logs/20200920T125253/userDataSync.log
Checking for syntax errors: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Queueing IntelliSense update for files in translation unit of: C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
cpptools/fileCreated: file:///c%3A/Users/Sam%20Huang/AppData/Roaming/Code/logs/20200920T125253/telemetry.log
Checking for syntax errors: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp
Queueing IntelliSense update for files in translation unit of: C:\DEVELOPMENT\RANGES-INTELLISENSE-REPRO\MAIN.CPP
cpptools/finishUpdateSquiggles
Error squiggle count: 1
Update IntelliSense time (sec): 0.521
cpptools/getSemanticTokens: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 8)
Database safe to open
cpptools/textEditorSelectionChange
cpptools/getCodeActions: file:///c%3A/Development/Ranges-Intellisense-Repro/main.cpp (id: 9)

Screenshots

Intellisense suggestions

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceenhancementImprovement to an existing featurefixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions