In this MR I aim to interpret/guess the indentation from jsconfig/tsconfig before rewriting the paths config back to the file.
This way, the plugin doesn't screw or force 4 spaces indentation for everyone.
I also made sure not to throw exception and fallback on the existing behaviour of '4 spaces' if we failed to interpret the indentation.
In this MR I aim to interpret/guess the indentation from jsconfig/tsconfig before rewriting the paths config back to the file. This way, the plugin doesn't screw or force 4 spaces indentation for everyone.
I also made sure not to throw exception and fallback on the existing behaviour of '4 spaces' if we failed to interpret the indentation.