Skip to content

Commit

Permalink
feat: enable patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed Oct 13, 2022
1 parent b901b13 commit 382862a
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 159 deletions.
4 changes: 2 additions & 2 deletions src/internal/PrettyThriftFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export class PrettyThriftFormatter extends PureThriftFormatter {
}

protected patch() {
this.walkNode(this._document, this.patchFieldReq);
// this.walkNode(this._document, this.patchFieldReq);
this.walkNode(this._document, this.patchFieldListSeparator);
this.walkNode(this._document, this.patchRemoveLastListSeparator);
// this.walkNode(this._document, this.patchRemoveLastListSeparator);
}

protected patchFieldReq(n: ParseTree) {
Expand Down
2 changes: 1 addition & 1 deletion src/internal/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { IOptions } from "../types";
export class Options implements IOptions {
indent = 4;
comment = true;
patch = false;
patch = true;
}

0 comments on commit 382862a

Please sign in to comment.