Skip to content

Create unit tests for auto indentation #1314

@DonJayamanne

Description

@DonJayamanne

We've had a number of bugs & fixes related to auto-indentation.
We need to ensure we do not regress.

Create unit tests for the following rules:

 languages.setLanguageConfiguration(PYTHON.language!, { onEnterRules: [ { beforeText: /^\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async)\b.*/, action: { indentAction: IndentAction.Indent } }, { beforeText: /^\s*#.*/, afterText: /.+$/, action: { indentAction: IndentAction.None, appendText: '# ' } }, { beforeText: /^\s+(continue|break|return)\b.*/, afterText: /\s+$/, action: { indentAction: IndentAction.Outdent } } ] });

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-formattingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions