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

Add an option to ignore aliases when moving using directives outside a namespace #77291

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #43271

@@ -56,6 +56,7 @@ public static CodeStyleOption2<AddImportPlacement> ParseUsingDirectivesPlacement
{
"inside_namespace" => new CodeStyleOption2<AddImportPlacement>(AddImportPlacement.InsideNamespace, notification),
"outside_namespace" => new CodeStyleOption2<AddImportPlacement>(AddImportPlacement.OutsideNamespace, notification),
"outside_namespace_ignoring_aliases" => new CodeStyleOption2<AddImportPlacement>(AddImportPlacement.OutsideNamespaceIgnoringAliases, notification),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentionally using hte word ignoring (as opposed to excluding or except) as i don't want to convey taht aliases must then be required to be inside the namespace. Instead, this is trying to say that aliases are simply ignored and can appear either outside or inside the namespace (for example, roslyn follows this model).

@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski ptal.

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