Pārlūkot izejas kodu

Fix overaggressive formatting when adding lines after `if` statement (#385)

Co-authored-by: Hugo Locurcio <[email protected]>
Zachary Gardner 3 gadi atpakaļ
vecāks
revīzija
4562bf1c31
1 mainītis faili ar 2 papildinājumiem un 6 dzēšanām
  1. 2 6
      configurations/gdscript-configuration.json

+ 2 - 6
configurations/gdscript-configuration.json

@@ -64,10 +64,6 @@
             "}"
         ]
     ],
-    "indentationRules": {
-        "increaseIndentPattern": "^\\s*((class|static func|func|else|elif|for|if|match|while|enum)|(.*\\sdo\\b))\\b[^\\{;]*$",
-        "decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(else|elif)\\b)"
-    },
     "folding": {
         "offSide": true,
         "markers": {
@@ -77,9 +73,9 @@
     },
     "onEnterRules": [
         {
-            "beforeText": "^\\s*$",
+            "beforeText": ":\\s*$",
             "action": {
-                "indent": "none"
+                "indent": "indent"
             }
         }
     ]