pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
235 stars 38 forks source link

Reindent cancels cosmetic indent #88

Open pacien opened 6 years ago

pacien commented 6 years ago

Original file: correctly indented manually

import unittest, json

suite "indent test":
  test "example":
    check (%* {
      "test_obj": {
        "test_array": [
          "hello",
          "world"
        ]
      }
    }) != nil

After running Reindent lines:

import unittest, json

suite "indent test":
  test "example":
    check (%* {
    "test_obj": {
    "test_array": [
    "hello",
    "world"
    ]
    }
    }) != nil