Skip to content

IntelliSense behaving incorrectly when files reopened with different casing #3229

@dwilliamson

Description

@dwilliamson

Type: LanguageService

Describe the bug

  • OS and Version: Microsoft Windows 10 Pro 10.0.17134 Build 17134
  • VS Code Version: 1.31.1
  • C/C++ Extension Version: 0.22.0 Insiders
  • Other extensions you installed (and if the issue persists after disabling them):
    • Go 0.9.2
    • Output Colorizer 0.1.2
    • Perforce for VS Code 3.1.0
    • Terraform 1.3.7
    • DISABLING these extensions has no effect

Description
After a short term iterating on C++ code (maybe, 10 minutes) VSCode no longer highlights any errors. Any errors highlighted previously stay in perpetuity.

The output window for C/C++ shows that it's still responding to text inputs, e.g:

textDocument/hover
sending 2 changes to server
cpptools/textEditorSelectionChange
textDocument/codeAction
textDocument/hover
sending 41 changes to server
cpptools/textEditorSelectionChange
textDocument/hover
$/setTraceNotification
$/setTraceNotification
$/setTraceNotification
cpptools/activeDocumentChange
cpptools/textEditorSelectionChange
cpptools/textEditorSelectionChange
cpptools/textEditorSelectionChange
textDocument/didChange
cpptools/textEditorSelectionChange
textDocument/codeAction
textDocument/didSave
  tag parsing file: FILE.CPP
textDocument/didChange
cpptools/textEditorSelectionChange
textDocument/didSave
  tag parsing file: FILE.CPP
Database safe to open

Reloading the window restores functioning intellisense.

To Reproduce
Iterate on C++ code for any sufficiently large project.

Expected behavior
Intellisense should respond to any errors introduced in code.

Screenshots
image

Above: Old error from variable that didn't exist before remains. Intellisense not responding the the garbage lslsl added, even after saving the file.

Additional context
C_Cpp.loggingLevel is set to Debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck 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