-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow formatting of an individual ast.FileNode (#2547)
Avoiding the need to materializing the .proto file being formatted, or a module to contain the file (or a readbucket to contain the result). If a file can parse, it can be formatted. For example, the current vscode-buf extension writes a temp file to format the in memory contents: https://github.com/bufbuild/vscode-buf/blob/6a083e4c4d21235643da65ddbed585d7a391da55/src/formatter.ts#L47
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters