We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7b56d commit ee32c27Copy full SHA for ee32c27
protobuf-plugin/src/main/kotlin/kotlinx/rpc/protobuf/ProtoToModelInterpreter.kt
@@ -25,7 +25,9 @@ class ProtoToModelInterpreter(
25
private val rootResolver = NameResolver.create(logger)
26
27
fun interpretProtocRequest(message: CodeGeneratorRequest): Model {
28
- return Model(message.protoFileList.map { it.toModel() })
+ val protoFileMap = message.protoFileList.associateBy { it.name }
29
+
30
+ return Model(message.fileToGenerateList.map { protoFileMap.getValue(it).toModel() })
31
}
32
33
// package name of a currently parsed file
0 commit comments