Repository navigation
sticky scroll in chat - #296433
sticky scroll in chat#296433
Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements sticky scroll functionality for the chat interface, allowing request messages to remain visible at the top of the viewport while scrolling through their responses.
Changes:
- Restructured chat list to use tree hierarchy with requests as parents and responses as children to enable sticky scroll
- Simplified request rendering from markdown to plain text with decorations for better sticky scroll compatibility
- Added dynamic height measurement for sticky scroll rows to handle variable chat message heights
- Implemented click handling to redirect sticky row interactions to real rows for editing functionality
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.ts | Added listShadow style configuration for sticky scroll shadow effect |
| src/vs/workbench/contrib/chat/browser/widget/media/chat.css | Added styles for sticky scroll rows (hide twisties, remove hover background) and line-clamping for request text (4 lines) |
| src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts | Added optional listShadow to IChatInputStyles interface |
| src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts | Implemented click interception for sticky scroll rows to redirect editing to real rows |
| src/vs/workbench/contrib/chat/browser/widget/chatListWidget.ts | Restructured chat items as tree (requests with response children), enabled sticky scroll, changed getListLength to count all items recursively |
| src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts | Switched request rendering from markdown to plain text, prevented sticky templates from updating heights/template maps, disabled editing on sticky rows |
| src/vs/base/browser/ui/tree/abstractTree.ts | Added dynamic height probing for sticky scroll, changed height calculations to use measured heights from view instead of delegate estimates |
| src/vs/base/browser/ui/list/listWidget.ts | Exposed getElementHeight method for height queries |
|
Copilot resolve the merge conflicts in this pull request |
# Conflicts: # src/vs/workbench/contrib/chat/browser/chat.contribution.ts Co-authored-by: justschen <[email protected]>
Merged |
|
Copilot resolve the merge conflicts in this pull request. Additionally, there have been new settings/experiments around a different sticky scroll widget currently in main - create a new experimental setting that enables this version of sticky scroll in chat vs. what we currently have today via |
Co-authored-by: justschen <[email protected]>
Co-authored-by: justschen <[email protected]>
Resolved the latest |
# Conflicts: # src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineWidgetContrib.ts # src/vs/workbench/contrib/chat/browser/widget/chatListWidget.ts # src/vs/workbench/contrib/chat/common/constants.ts
Co-authored-by: Copilot <[email protected]>
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
adds sticky scroll for requests in chat.