Skip to content

"editor.formatOnType" breaks return annotations #1442

Closed

Description

Actual behavior

def foo(a: int) -> bool:

becomes

def foo(a: int) - > bool:

and loses the indentation.

Expected behavior

To not change and indent on Enter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions