A Thrift file formatter extention
use https://github.com/thrift-labs/thrift-fmt-ts
(a typescript implement of https://github.com/thrift-labs/thrift-fmt )
unfortunately, it was created with a typo extension name "thirft-formater"
- keeping the comments
- align the tail comment of struct/enum
- align by field's each part in struct/enum/union/exception
- or align by field's assgin part in struct/enum/union/exception
- patch the missed list separator
- pathc the missed 'required' in field
thriftFormatter.patchRequired
boolean, defaulttrue
if true
will patch the miss required
for field in struct or others.
thriftFormatter.patchSeparator
boolean, defaulttrue
if true
will patch the miss ,
for field in struct or others, will remove the ,
at function tail in service
thriftFormatter.indent
number, default4
the space indent for field in struct or enum and function in service.
thriftFormatter.alignByAssign
boolean, defaultfalse
if true
, will align by field's assgin ('=') part, support field in struct or others.
thriftFormatter.assignAlign
boolean, defaultfalse
if true
, will align by field's each part, support field in struct or others.
if true
, will ingore the alignByAssign
option
see #issues
see CHANGELOG.md and vscode Page