I'm writing a plugin and I need the line numbers of the changes (in the "after" file).
It looks like I can get that from SBuild.getChanges().getChanges().getContentAfter() and getContentBefore() (and then diffing them).
However, the only object references that were passed in are AgentRunningBuild and BuildRunnerContext. I don't see an available SBuild reference in either of them.
Is there a way to get a reference to an SBuild object?
note: I'm getting the AgentRunningBuild and BuildRunnerContext references from extending AgentBuildRunner and implementing createBuildProcess(@NotNull AgentRunningBuild runningBuild, @NotNull BuildRunnerContext context) (and then passing them in to my BuildProcessAdapter extension). I know it's standard to not directly extend AgentBuildRunner, but the BuildServiceAdapter route doesn't work for me.
Also, if there's an easier way to get the line numbers of the changes than manually diffing getContentBefore and getContentAfter, please let me know.