Skip to content

Commit 6421e91

Browse files
committed
missing register
1 parent 3ab4e99 commit 6421e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ export class TerminalChatController extends Disposable implements ITerminalContr
135135
// This is glue/debt that's needed while ChatModel isn't yet adopted. The chat model uses
136136
// a default chat model (unless configured) and feedback is reported against that one. This
137137
// code forwards the feedback to an actual registered provider
138-
this._chatService.onDidPerformUserAction(e => {
138+
this._register(this._chatService.onDidPerformUserAction(e => {
139139
if (e.providerId === this._chatWidget?.rawValue?.inlineChatWidget.getChatModel().providerId) {
140140
if (e.action.kind === 'bug') {
141141
this.acceptFeedback(undefined);
142142
} else if (e.action.kind === 'vote') {
143143
this.acceptFeedback(e.action.direction === InteractiveSessionVoteDirection.Up);
144144
}
145145
}
146-
});
146+
}));
147147
}
148148

149149
private initTerminalAgent(): boolean {

0 commit comments

Comments
 (0)