From a382793345cb5b458e07f50d51f642606a149351 Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Wed, 1 Nov 2023 21:48:39 +0100 Subject: [PATCH] Don't indent after empty lines. (#231) --- vscode/language-configuration.json | 8 +++++++- vscode/package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/vscode/language-configuration.json b/vscode/language-configuration.json index 2293a59..666eecc 100644 --- a/vscode/language-configuration.json +++ b/vscode/language-configuration.json @@ -32,5 +32,11 @@ "indentationRules": { "increaseIndentPattern": "[\\:]([\\s]*\\|(\\s*[\\w-]+)+\\s*\\|)?$", "decreaseIndentPattern": "^[\\s]*else[\\:]$" - } + }, + "onEnterRules": [ + { + "beforeText": "^\\s*$", + "action": { "indent": "none" } + } + ] } diff --git a/vscode/package.json b/vscode/package.json index d8c1b3b..46d27da 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -3,7 +3,7 @@ "displayName": "Toit", "description": "Toit Programming Language Support", "publisher": "toit", - "version": "1.8.2", + "version": "1.8.6", "license": "MIT", "type": "commonjs", "engines": {