oakmac / vscode-parinfer

Parinfer for VS Code
MIT License
167 stars 20 forks source link

Smart Mode bug - paren trail holding behavior #36

Open shaunlebron opened 6 years ago

shaunlebron commented 6 years ago

In Smart Mode, when a cursor leaves a "paren-trail holding area", indentation should be corrected.

These paren trail holding areas allow the user to enter intermediate states that are incorrectly formatted, because they may be on the path to a correctly formatted state that parinfer cannot predict.

For example, the (sdfsdf... line should be dedented when the the cursor moves to a different line to prevent [] from swallowing subsequent lines.

❌vscode bug: vim-bug-swallow

✅atom showing correct behavior: atom-desired-behavior-1