dotnet / dotnet/vscode-csharp

Run/Debug links disappear if I add a record to my test code

Open
#5,532 0 comments 0 reactions 0 assignees View on GitHub
OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Example repo: https://github.com/peeveen/VSCodeDebugBug

I have created a simple dummy class library, and MSTest test project.
Here's my test class:

![image](https://user-images.githubusercontent.com/23334330/212319421-88d10021-6e03-46f0-b94b-f32968062fac.png)

As you can see, Run/Debug links are appearing fine.
If I add a `record` to this code:

![image](https://user-images.githubusercontent.com/23334330/212319932-d719e776-36ef-4e02-8ef6-3d5504c916b8.png)

... they disappear.
It also happens if I add an empty inner class:

![image](https://user-images.githubusercontent.com/23334330/212320077-fa4701a5-81e3-405d-a239-cbcace392f8a.png)

If I add any properties/functions to this class, the links re-appear.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.