Skip to content

Commit

Permalink
add missing retainSourceCodeInfo in scalapb.gen
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Sep 9, 2023
1 parent 73fbd15 commit 69ab4a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler-plugin/src/main/scala/scalapb/gen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ object gen {
grpc: Boolean = true,
singleLineToProtoString: Boolean = false,
asciiFormatToString: Boolean = false,
lenses: Boolean = true
lenses: Boolean = true,
retainSourceCodeInfo: Boolean = false
): (SandboxedJvmGenerator, Seq[String]) = {
val optionsBuilder = Set.newBuilder[GeneratorOption]
if (flatPackage) {
Expand All @@ -54,6 +55,9 @@ object gen {
if (!lenses) {
optionsBuilder += NoLenses
}
if (retainSourceCodeInfo) {
optionsBuilder += RetainSourceCodeInfo
}
apply(optionsBuilder.result())
}
}

0 comments on commit 69ab4a7

Please sign in to comment.