Implement double-click to create new chat session in Chat Sessions view #267131
+10
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #264515
This PR implements the ability to double-click in empty space within the Chat Sessions view to create a new chat session, following the same UX pattern as the Explorer view.
Changes
Added a double-click event handler to the Chat Sessions tree that:
e.element === null
)workbench.list.scrollByPage
configuration to avoid conflicts with page scrollingworkbench.action.chat.open
command to create a new chat sessionImplementation Details
The implementation follows the exact same pattern as the Explorer view's double-click handler:
This ensures consistency across VS Code's interface and provides users with an intuitive way to create new chat sessions without having to locate the "+" button.
Testing
The change is minimal and surgical, adding only 10 lines of code without modifying any existing functionality.
Created from VS Code via the GitHub Pull Request extension.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.