Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade thrift-fmt-ts, support align by each part of field #22

Merged
merged 8 commits into from
Mar 25, 2023

Conversation

alingse
Copy link
Contributor

@alingse alingse commented Mar 25, 2023

开启 alignByField 之后

       struct Person {
           1: list<string> tags = ["A"],
           2: optional list<string> opt_tags = ["1", "2"],
           3: required list<string> req_tags = [],
           4: string name = "hello";
           5: optional string opt_name,
           16: required string req_name,
       }

会变成

struct Person {
    1:           list<string> tags     = [ "A" ]     ,
    2:  optional list<string> opt_tags = [ "1", "2" ],
    3:  required list<string> req_tags = [ ]         ,
    4:           string       name     = "hello"     ,
    5:  optional string       opt_name               ,
    16: required string       req_name               ,
}

@alingse
Copy link
Contributor Author

alingse commented Mar 25, 2023

cc @ALL-AC
解决 #19

@alingse alingse merged commit 4a5f7c7 into main Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant