forked from DonJayamanne/pythonVSCode
- Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
area-formattingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on
Milestone
Description
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
Labels
area-formattingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.Covers everything internal: CI, testing, refactoring of the codebase, etc.needs PRReady to be worked onReady to be worked on