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 }
}
]
});
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: