Skip to content

Commit b33d654

Browse files
committed
fix
1 parent 3599eb1 commit b33d654

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function runAccessibilityHelpAction(accessor: ServicesAccessor, edi
7979
}
8080
provider.dispose();
8181
},
82-
options: { isHelpMenu: true, ariaLabel: type === 'panelChat' ? localize('chat-help-label', "Chat accessibility help") : localize('inline-chat-label', "Inline chat accessibility help"), language: 'typescript' }
82+
options: { isHelpMenu: true, ariaLabel: type === 'panelChat' ? localize('chat-help-label', "Chat accessibility help") : localize('inline-chat-label', "Inline chat accessibility help") }
8383
});
8484
accessibleViewService.show(type);
8585
}

src/vs/workbench/contrib/chat/browser/chat.contribution.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,12 @@ class ChatAccessibileViewContribution extends Disposable {
153153
// TODO: allow this for requests
154154
return isResponseVM(currentResponse) ? currentResponse.response.value : 'No response data';
155155
}
156-
accessibleViewService.registerProvider({
156+
const provider = accessibleViewService.registerProvider({
157157
id: 'panelChat',
158158
provideContent,
159159
onClose() {
160160
widget.reveal(focused, true);
161+
provider.dispose();
161162
},
162163
options: { ariaLabel: nls.localize('chatAccessibleView', "Chat Accessible View"), language: 'typescript' }
163164
});

0 commit comments

Comments
 (0)