- Notifications
You must be signed in to change notification settings - Fork4.2k
Add code refactoring to offer usings for fully qualified names#81484
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
2b9d6fd120b6eb442635bf8302ff1afb500ab05c395c296933156905ad5aea71565cc97ba7e6e16be2c943e9d6bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Co-authored-by: CyrusNajmabadi <4564579+CyrusNajmabadi@users.noreply.github.com>
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
| @@ -81,7 +81,7 @@ | ||
| { | ||
| // Walk up from the current node to find the outermost qualified name or member access | ||
| // that represents a type reference | ||
| SyntaxNode? current = node; | ||
Check failure on line 84 in src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs
| ||
| SyntaxNode? qualifiedName = null; | ||
| while (current != null) | ||
| @@ -216,7 +216,7 @@ | ||
| var newDocument = document.WithSyntaxRoot(newRoot); | ||
| // Simplify the document | ||
| newDocument = await Simplifier.ReduceAsync(newDocument, Simplifier.Annotation, cancellationToken: cancellationToken).ConfigureAwait(false); | ||
Check failure on line 219 in src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs
| ||
| return newDocument; | ||
| } | ||
Uh oh!
There was an error while loading.Please reload this page.