saem/vscode-nim

Aparent issue with nimpretty

KioriSun opened this issue · 1 comments

I have code that goes:
`if ... :
break;

echo("stuff)`

When i format it with this extension, it changes the code to:
if ... : break; echo("stuff)

so the if statement becomes dominant over everything, unless there is any other function there besides break.
It's as if it ignored break, I'm not sure.

Let me know if i need to test anything else.
This issue doesn't happen in pragmatic's extension.

saem commented

For me it's not a big deal.

If you'd like to take a closer look see the readme for debug instructions and/or checkout the code that dispatches nimpretty. Maybe there is some config that's having it behave differently or there can be some setup options to allow one to configure it.