Skip to content

AddOpen code fix might add too many empty lines #15552

@psfinaki

Description

@psfinaki

Take a look:

bug.mp4

In the first case, the fix adds an extra line and then the open above it - which is reasonable.
In the second case, the fix adds two extra lines and then the open above it - which is okay but why.

This probably isn't a "bug" really, since the code compiles, but not an improvement either, since addressing this wouldn't bring new functionality. Just a small flaw kind of.

Metadata

Metadata

Assignees

Labels

Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions