Skip to content

can not find the all reference when c++ file extension is not .cpp #8687

Description

@heartacker

Bug type: Language Service

Describe the bug
版本: 1.64.0-insider (system setup)
提交: 23aa7ad51c95d90d48b1d352a316d7f0c2c4310d
日期: 2022-01-18T09:44:38.476Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.14393
C/C++: 1.8.0-INSIDER

Steps to reproduce

  1. a foo.h file
  2. a foo.pln file witch code is cpp
  3. change the .pln file association with cpp
  4. focus a function declaration in the header file, execute command find all reference
  5. we could not see any reference in pln file
  6. open the pln with vscode
  7. execute command find all reference again
  8. we could see that reference in pln file

Expected behavior
we could see reference in pln file

Screenshots

image

  • before open pln file in vscode
    image

  • after open pln file in vscode
    image

Additional context

pln is a special file extension of cpp in my solution

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions