-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEBugFeature - IDE0065Misplaced using directiveMisplaced using directivehelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Description
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
- Create or open a C# project in Visual Studio Code (Visual Studio untested).
- Add the following code wherever syntactically applicable:
namespace Foo; using Alias = C; class C;
- Apply the
Move misplaced using directives
fix onAlias
.
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;
Metadata
Metadata
Assignees
Labels
Area-IDEBugFeature - IDE0065Misplaced using directiveMisplaced using directivehelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it