Conversation
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@base/src/main/resources/META-INF/resources/frontend/code-viewer.ts`:
- Around line 328-335: The `@DemoSource` removal code only looks for '(' on the
same line; instead compute a parenthesis balance for the annotation start (count
'(' minus ')' on the current line) and if balance > 0 iterate forward updating
balance with counts of '(' and ')' on each subsequent line, setting each visited
lines[k] = null until balance <= 0 or end of file; if balance == 0 just null the
single line. Update the block that inspects lines[i] (the `@DemoSource` handling
loop using variables lines and i) to use this parenthesis-balance loop so
wrapped annotations spanning multiple lines are fully removed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1969207e-ef04-4ea2-b823-ad672ab7e6ce
📒 Files selected for processing (1)
base/src/main/resources/META-INF/resources/frontend/code-viewer.ts



Close #85
Summary by CodeRabbit