Sitelet https://web.archive.org/web/20260331115221/https://github.com/github/codeql/issues/4351
Skip to content

C# contextual queries (find definitions and references) are not working #4351

@aeisenberg

Description

@aeisenberg

I'm using this project in the VS Code extension: https://lgtm.com/projects/g/JetBrains/resharper-cyclomatic-complexity

To reproduce:

  1. Download the database above into VS Code
  2. Open this file: src/opt/src/src/dotnet/ReSharperPlugin.CyclomaticComplexity/ComplexityAnalysisElementProblemAnalyzer.cs
  3. Select the definition _provider, right click -> Go To References
  4. BUG

Expected: references are found on lines 48 and 98.
Actual: no references found

Similarly, find Definition is not working:

  1. Select either of the references of _provider
  2. Right click -> Go To Definition
  3. BUG

Expected: Caret is navigated to the definition
Actual: no definition found

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions