如何防止prototool删除注释之间的空格?

时间:2019-03-31 03:56:15

标签: protocol-buffers

运行prototool all后,注释之间的空格将自动删除。有办法防止这种情况吗?

service UserService {
  // Unauthenticated requests
  rpc Login(LoginRequest) returns (LoginResponse);
  rpc Register(RegisterRequest) returns (RegisterResponse);
  rpc ForgotPassword(ForgotPasswordRequest) returns (ForgotPasswordResponse);
  rpc ResetPassword(ResetPasswordRequest) returns (ResetPasswordResponse);
  rpc ValidateToken(ValidateTokenRequest) returns (ValidateTokenResponse);

  // Authenticated write requests
  rpc ChangeEmail(ChangeEmailRequest) returns (ChangeEmailResponse);
  rpc ChangeUsername(ChangeUsernameRequest) returns (ChangeUsernameResponse);
  rpc ChangePassword(ChangePasswordRequest) returns (ChangePasswordResponse);
  rpc VerifySecurityQA(VerifySecurityQARequest) returns (VerifySecurityQAResponse);
  rpc Update(UpdateRequest) returns (UpdateResponse);
  rpc Delete(DeleteRequest) returns (DeleteResponse);

  // Authenticated read requests
  rpc User(UserRequest) returns (UserResponse);
  rpc Users(UsersRequest) returns (stream UserResponse);
}

0 个答案:

没有答案