Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense References not showing correctly when using a Primary-Constructor #73469

Closed
vsfeedback opened this issue May 14, 2024 · 2 comments
Closed
Assignees
Milestone

Comments

@vsfeedback
Copy link

vsfeedback commented May 14, 2024

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
When Using a Primary-Constructor the Intellisense-Reference-Counter does not count/show the reference.

Picture 1 shows the Reference of the empty Constructor Edge as Zero ("0 Verweise" is german for "0 References"). Here the calling class is using a primary Constructor:

B3efbeff3d19649c1bb2e8a6e0bb362a9638511952769773689_20240513-130756-grafik

Picture 2 shows the Reference of the empty Constructor Edge as 1. Here the calling Class is using a regular Constructor:

Bb11baced31ff457e93491a09e26662b7638511954391707913_20240513-131038-grafik


Original Comments

Feedback Bot on 5/14/2024, 04:42 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 14, 2024
@dibarbet
Copy link
Member

(Triage) Confirmed that modifying

public class Edge
{
    public Edge() { }
}
public class Edge<T> : Edge
{
    public Edge(string s) : base() { }
}

to

public class Edge
{
    public Edge() { }
}
public class Edge<T>(string s) : Edge()
{
}

results in both codelens and an explicit FAR no longer showing a reference for the base constructor.

@dibarbet dibarbet added this to the 17.12 milestone Jun 19, 2024
@dibarbet dibarbet removed the untriaged Issues and PRs which have not yet been triaged by a lead label Jun 19, 2024
@CyrusNajmabadi CyrusNajmabadi modified the milestones: 17.12, 17.13 Nov 26, 2024
@CyrusNajmabadi
Copy link
Member

Fixed with #76097.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants