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

Fix Move misplaced using directives breaks symbol qualification #75961

Open
just-ero opened this issue Nov 18, 2024 · 0 comments
Open

Fix Move misplaced using directives breaks symbol qualification #75961

just-ero opened this issue Nov 18, 2024 · 0 comments
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@just-ero
Copy link

Version Used

Compiler: 4.13.0-2.24561.3 (24e1dd6)
.NET: 9.0.100
Visual Studio Code: 1.95.3, f1a4fb101478ce6ec82fe9627c43efbf9e98c813, x64
C# Extension: v2.56.31
C# Dev Kit Extension: v1.14.2

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:
    namespace Foo;
    
    using Alias = C;
    
    class C;
  3. Apply the Move misplaced using directives fix on Alias.

Diagnostic ID: IDE0065

Expected Behavior

using Alias = Foo.C;

namespace Foo;

class C;

Actual Behavior

using Alias = C; // The type or namespace name 'C' could not be found

namespace Foo;
class C;
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

1 participant