Skip to content

Commit 765f1c1

Browse files
committed
Agents - do not pass the session metadata to commands (#315214)
* Agents - do not pass the session metadata to commands * Fix compilation
1 parent cff901d commit 765f1c1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/vs/sessions/contrib/changes/browser/changesView.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import { ViewPane, IViewPaneOptions, ViewAction } from '../../../../workbench/br
5050
import { ViewPaneContainer } from '../../../../workbench/browser/parts/views/viewPaneContainer.js';
5151
import { IViewDescriptorService } from '../../../../workbench/common/views.js';
5252
import { CHAT_CATEGORY } from '../../../../workbench/contrib/chat/browser/actions/chatActions.js';
53-
import { IAgentSessionsService } from '../../../../workbench/contrib/chat/browser/agentSessions/agentSessionsService.js';
5453
import { ChatContextKeys } from '../../../../workbench/contrib/chat/common/actions/chatContextKeys.js';
5554
import { createFileIconThemableTreeContainerScope } from '../../../../workbench/contrib/files/browser/views/explorerView.js';
5655
import { ACTIVE_GROUP, IEditorService, SIDE_GROUP } from '../../../../workbench/services/editor/common/editorService.js';
@@ -93,7 +92,6 @@ class ChangesButtonBarWidget extends Disposable {
9392
container: HTMLElement,
9493
viewModel: ChangesViewModel,
9594
hasGitOperationInProgressObs: IObservable<boolean>,
96-
@IAgentSessionsService agentSessionsService: IAgentSessionsService,
9795
@IMenuService menuService: IMenuService,
9896
@ICodeReviewService codeReviewService: ICodeReviewService,
9997
@IContextKeyService contextKeyService: IContextKeyService,
@@ -172,7 +170,7 @@ class ChangesButtonBarWidget extends Disposable {
172170
{
173171
telemetrySource: 'changesView',
174172
menuOptions: sessionResource
175-
? { args: [sessionResource, agentSessionsService.getSession(sessionResource)?.metadata] }
173+
? { arg: sessionResource }
176174
: { shouldForwardArgs: true },
177175
buttonConfigProvider: (action) => this._getButtonConfiguration(action, outgoingChanges, reviewState, hasGitOperationInProgress, runningLabelObs)
178176
},

0 commit comments

Comments
 (0)