Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Draft
Copilot wants to merge13 commits intomain
base:main
Choose a base branch
Loading
fromcopilot/add-usings-for-qualified-types
Draft
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Apply code formatting
Co-authored-by: CyrusNajmabadi <4564579+CyrusNajmabadi@users.noreply.github.com>
  • Loading branch information
@CyrusNajmabadi
Copilot andCyrusNajmabadi committedNov 29, 2025
commitf8302ffb7d19149d87c98c7aa01ec57d413559a5

Some comments aren't visible on the classic Files Changed page.

View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// 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.

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// 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.

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// 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.

Expand DownExpand Up@@ -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

View check run for this annotation

Azure Pipelines/ roslyn-CI (Correctness Correctness_Analyzers)

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs#L84

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs(84,9): error IDE0007: (NETCORE_ENGINEERING_TELEMETRY=Build) use 'var' instead of explicit type (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0007)

Check failure on line 84 in src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs

View check run for this annotation

Azure Pipelines/ roslyn-CI (Correctness Correctness_Analyzers)

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs#L84

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs(84,9): error IDE0007: (NETCORE_ENGINEERING_TELEMETRY=Build) use 'var' instead of explicit type (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0007)
SyntaxNode? qualifiedName = null;

while (current != null)
Expand DownExpand Up@@ -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

View check run for this annotation

Azure Pipelines/ roslyn-CI (Correctness Correctness_Analyzers)

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs#L219

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs(219,29): error RS0030: (NETCORE_ENGINEERING_TELEMETRY=Build) The symbol 'Simplifier.ReduceAsync(Document, SyntaxAnnotation, OptionSet?, CancellationToken)' is banned in this project: Use overload that takes SimplifierOptions (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md)

Check failure on line 219 in src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs

View check run for this annotation

Azure Pipelines/ roslyn-CI (Correctness Correctness_Analyzers)

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs#L219

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs(219,29): error RS0030: (NETCORE_ENGINEERING_TELEMETRY=Build) The symbol 'Simplifier.ReduceAsync(Document, SyntaxAnnotation, OptionSet?, CancellationToken)' is banned in this project: Use overload that takes SimplifierOptions (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md)

Check failure on line 219 in src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs

View check run for this annotation

Azure Pipelines/ roslyn-CI (Correctness Correctness_Analyzers)

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs#L219

src/Features/Core/Portable/AddImport/AbstractAddImportCodeRefactoringProvider.cs(219,29): error RS0030: (NETCORE_ENGINEERING_TELEMETRY=Build) The symbol 'Simplifier.ReduceAsync(Document, SyntaxAnnotation, OptionSet?, CancellationToken)' is banned in this project: Use overload that takes SimplifierOptions (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md)

return newDocument;
}
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp