Skip to content

Fixup 'add import on paste' to respect import ordering and grouping#76761

Merged
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:addImportOrdering
Jan 15, 2025
Merged

Fixup 'add import on paste' to respect import ordering and grouping#76761
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
CyrusNajmabadi:addImportOrdering

Conversation

@CyrusNajmabadi
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Jan 15, 2025

Fixes #51844
Fixes #68632

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner January 15, 2025 17:21
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 15, 2025

var expected = """
using A;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

desirable change.

namespace Microsoft.CodeAnalysis.AddMissingImports;

internal sealed class AddMissingImportsAnalysisResult(
ImmutableArray<AddImportFixData> addImportFixData)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

got rid of this wrapper type as it serves no purpose.

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 VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MissingImports is not respecting .editorconfig "Add missing using directives on paste" inserts them in the wrong order

3 participants