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

No code actions available for member in documentation comment when member is not known #75349

Open
just-ero opened this issue Oct 2, 2024 · 2 comments
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@just-ero
Copy link

just-ero commented Oct 2, 2024

Version Used

Compiler: 4.12.0-3.24470.4 (d799b05)
.NET: 9.0.100-rc.1.24452.12
Visual Studio Code: 1.93.1, 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, x64
C# Extension: v2.49.25
C# Dev Kit Extension: v1.11.11

Steps to Reproduce

  1. Create or open a C# project in Visual Studio Code (Visual Studio untested).
  2. Add the following code wherever syntactically applicable (use a type or member that is not known in the current context):
    /// <summary><see cref="C"/></summary>
  3. Observe the type or member not having any code actions available.

Expected Behavior

There are suggestions for adding a missing namespace or generating the missing type.

Actual Behavior

There are not.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 2, 2024
@CyrusNajmabadi
Copy link
Member

This should work. We should have tests for this. Odd.

@CyrusNajmabadi CyrusNajmabadi added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it Area-IDE and removed Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 2, 2024
@CyrusNajmabadi CyrusNajmabadi added this to the Backlog milestone Oct 2, 2024
@github-project-automation github-project-automation bot moved this to InQueue in Small Fixes Oct 2, 2024
@just-ero
Copy link
Author

just-ero commented Oct 3, 2024

image

This is the case regardless of whether Ref exists anywhere in the same project (exceptions are: the same file, the same namespace, the global namespace).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
Status: InQueue
Development

No branches or pull requests

2 participants