Open atsu85 opened 8 years ago
Actually there are other good options to consider for storing the TS formatting preferences: looks like vvakame/typescript-formatter can read formatting rules from tslint.json, tsfmt.json and .editorconfig.
@angelozerr, have You considered using some other formatter instead Your own custom solution? There are also other tools, such as gulp-typescript-formatter that rely on vvakame/typescript-formatter
@angelozerr, have You considered using some other formatter instead Your own custom solution?
At first it's not my own custom solution, it's the standard mean with Eclipse preferences.
Yes I have started to study how to manage any formatter with extension point, but no time to implement it today. For the moment I'm studying debugging, I will study your idea when I will hav e time.
Anyway, thank's a lot for your great information about typescript formatter.
@angelozerr, have You considered using some other formatter instead Your own custom solution?
At first it's not my own custom solution, it's the standard mean with Eclipse preferences.
I meant the formatter(code that formats TS), not the code/means where preferences are stored.
I meant the formatter(code that formats TS)
For that I call tsserver "format" command with the configuration comming from Eclipse Preferences by using JSON object https://github.com/angelozerr/typescript.java/blob/master/core/ts.core/src/ts/client/format/FormatOptions.java waited by TYpeScript. So it's not a custom solution. VSCode does like this too.
Oh, my bad then.
(copied from my comment in another issue)