Skip to content

Rename ChatService.getHistory to getLocalSessionHistory#273841

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/democratic-swallow
Oct 29, 2025
Merged

Rename ChatService.getHistory to getLocalSessionHistory#273841
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/democratic-swallow

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Oct 29, 2025

Trying to make it more clear that this only returns the local sessions, not those from providers

@roblourens Please let me know if this isn't correct

Trying to make it more clear that this only returns the local sessions, not those from providers
Copilot AI review requested due to automatic review settings October 29, 2025 00:33
@mjbvz mjbvz enabled auto-merge October 29, 2025 00:33
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.ts
  • src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames the getHistory() method to getLocalSessionHistory() across the chat service interface, implementation, and all its usages. The new name better reflects that this method specifically retrieves local session history rather than all history types.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/chatService.ts Updates the interface method signature from getHistory() to getLocalSessionHistory()
src/vs/workbench/contrib/chat/common/chatServiceImpl.ts Updates the implementation method name to match the interface change
src/vs/workbench/contrib/chat/test/common/mockChatService.ts Updates the mock service to match the renamed interface method
src/vs/workbench/contrib/chat/browser/chatWidget.ts Updates method call to use the new name
src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.ts Updates method call to use the new name
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.ts Updates method call to use the new name
src/vs/workbench/contrib/chat/browser/actions/chatActions.ts Updates two method calls to use the new name

@mjbvz mjbvz merged commit 546e423 into microsoft:main Oct 29, 2025
22 of 23 checks passed
dmitrivMS pushed a commit that referenced this pull request Oct 29, 2025
Rename `ChatService.getHistory` to `getLocalSessionHistory`
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants