feat: add source field to ServerNotification.Log for selective BSP lo… - #97
Conversation
…g forwarding Add optional 'source: Option[String]' field to ServerNotification.Log, allowing log producers to tag their messages with a subsystem identifier (e.g. 'zinc', 'coursier', 'scalajs', 'scalanative'). The BSP callback now filters log forwarding by source — suppressing zinc compile chatter while forwarding non-zinc errors and warnings to the client. This replaces the coarse isCompileTask boolean for log filtering, which didn't scale when non-compile BSP requests triggered transitive compilations.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughAdds an optional Changessource field propagation through notification pipeline
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…g forwarding
Add optional 'source: Option[String]' field to ServerNotification.Log, allowing log producers to tag their messages with a subsystem identifier (e.g. 'zinc', 'coursier', 'scalajs', 'scalanative'). The BSP callback now filters log forwarding by source — suppressing zinc compile chatter while forwarding non-zinc errors and warnings to the client.
This replaces the coarse isCompileTask boolean for log filtering, which didn't scale when non-compile BSP requests triggered transitive compilations.
Summary by CodeRabbit
New Features
Bug Fixes