Skip to content

[WebToolsE2E][Blue] "Find All References" doesn't work properly #2229

@Susie-1989

Description

@Susie-1989

REGRESSION INFO: Not a Regression

INSTALL STEP

Repro OS: Win arm64
Install latest VSCode (latest released version 1.104.0-insider)
Install SDK 8.0.413
Install public pre-release C# Extension, version 2.88.42

REPRO STEPS

1.Create razor project

md razor
cd razor
dotnet new razor --use-program-main

2.Open this folder with vs code and open program.cs then enter the code "public interface ICheese {}"above public class Program. save the change in program.cs.
3.Edit Index.cshtml to including the following at the bottom:

@{ var x = typeof(Program); }
@functions {
public class Cheddar : ICheese {}
}

4.right-click on the Program part of public class Program in Program.cs and click Find All References

Note:
1.In win x64, for C# Extension, version 2.88.42, blocked by bug 8480
2.This issue works well for C# version 2.87.31

ACTUAL References in Index.cshtml are not visible in the reference results

Image

EXPECTED References in Index.cshtml are visible in the reference results

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions