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.patchRequiredboolean, defaulttrue
if true will patch the miss required for field in struct or others.
thriftFormatter.patchSeparatorboolean, defaulttrue
if true will patch the miss , for field in struct or others, will remove the , at function tail in service
thriftFormatter.indentnumber, default4
the space indent for field in struct or enum and function in service.
thriftFormatter.alignByAssignboolean, defaultfalse
if true, will align by field's assgin ('=') part, support field in struct or others.
thriftFormatter.assignAlignboolean, 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