fix(desktop): update scroll-to-bottom for xterm.js 6.0#1163
Conversation
xterm.js 6.0 replaced the native browser scrollbar with VS Code's scrollbar implementation. The old approach of manually scrolling the .xterm-viewport element no longer works. - Use terminal.scrollToBottom() directly instead of DOM manipulation - Use terminal.onScroll event instead of viewport scroll listener
📝 WalkthroughWalkthroughRefactored terminal scroll handling to replace direct DOM event listeners with terminal-provided abstractions. The Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 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 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
* Revert "fix(desktop): update scroll-to-bottom for xterm.js 6.0 (#1163)" This reverts commit ff72654. * Revert "fix(desktop): update xterm CSS for 6.0.0 viewport changes (#1133)" This reverts commit 5800bfd. * Revert "chore(desktop): upgrade xterm.js to v6.0.0 (#1125)" This reverts commit cce723b. * chore: remove unused FilesView/types.ts (dead react-arborist import)
Summary
terminal.scrollToBottom()instead of manually scrolling.xterm-viewportDOM elementterminal.onScrollevent instead of viewport scroll listener for detecting scroll positionTest plan
Summary by CodeRabbit