Also i tried to create the same as a custom formatter. Anyway, even if i format the whole buffer, the result differs from manually running the exact same command on a file. E.g. i get the broken lambdas:
output.ForEach(p = > Console.WriteLine(p));
and some cursed public keywords placement while the tabstop is 4
public
class Program
{
public
static void Main(string[] args)
{}
}
and broken string interpolation like this
Console.WriteLine($ "Var: {var}");
when i run the same command from shell, i don't get these issues and formatting is good
Fixed, --assume-filename isn't working without stdin so it recognized the file as C code for some reason (i thought neoformat tempfile saves the extension). With stdin = 1 in neoformat it works well.
I have redefined the clangformat for C# like this:
Also i tried to create the same as a custom formatter. Anyway, even if i format the whole buffer, the result differs from manually running the exact same command on a file. E.g. i get the broken lambdas:
and some cursed
public
keywords placement while the tabstop is 4and broken string interpolation like this
when i run the same command from shell, i don't get these issues and formatting is good