microsoft / microsoft/vscode-cpptools

Document symbols can be missing if an unmatched { is in an inactive region

Open
#9,573 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: Configuration Language Service more votes needed performance Visual Studio
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and version: windows 10
  • VS Code: 1.67.2
  • C/C++ extension: v1.11.2
  • OS and version of remote machine (if applicable):ubuntu
  • GDB / LLDB version:
Bug Summary and Steps to Reproduce

Bug Summary:

  1. when openning a source code from remote ubuntu, it uses a long time to loading symbols, and then can not find the symbols with Ctrl+shift+O.

  2. after loading the symbols for some time, it will lost the symbols until loading again

  3. if I add a new function, outline can not load the function symbols

  4. some functions can not be loaded, but I can not find the cause, may be like this code in the function:
    #if xxx #if xxx #endif #endif

Debugger Configurations
null
Debugger Logs
null
Other Extensions

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the missing document symbols through Ctrl+Shift+O and the outline view using an unmatched { inside an inactive region. Compare symbol loading before and after adding a function, and consider the issue resolved when all expected document symbols remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.