On some .ts files, code format settings from tsfmt.json are picked up and tab characters are converted into spaces. But on other files in the same project, spaces are converted into tab characters.
I am not sure how to debug the issue, and whether it is based in the editor or the language service.