Skip to content

Commit 588116e

Browse files
committed
go with move focus
1 parent 4707bf8 commit 588116e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ class ChatAccessibleViewContribution extends Disposable {
179179
}
180180
},
181181
next() {
182-
verifiedWidget.focusWithId(focusedItem.id, 'next');
182+
verifiedWidget.moveFocus(focusedItem.id, 'next');
183183
renderAccessibleView(accessibleViewService, widgetService, codeEditorService);
184184
},
185185
previous() {
186-
verifiedWidget.focusWithId(focusedItem.id, 'previous');
186+
verifiedWidget.moveFocus(focusedItem.id, 'previous');
187187
renderAccessibleView(accessibleViewService, widgetService, codeEditorService);
188188
},
189189
options: { ariaLabel: nls.localize('chatAccessibleView', "Chat Accessible View"), language: 'typescript', type: AccessibleViewType.View }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface IChatWidget {
5656

5757
reveal(item: ChatTreeItem): void;
5858
focus(item: ChatTreeItem): void;
59-
focusWithId(id: string, type: 'next' | 'previous'): void;
59+
moveFocus(id: string, type: 'next' | 'previous'): void;
6060
getFocus(): ChatTreeItem | undefined;
6161
acceptInput(query?: string): void;
6262
focusLastMessage(): void;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
168168
this.inputPart.focus();
169169
}
170170

171-
focusWithId(id: string, type: 'next' | 'previous'): void {
171+
moveFocus(id: string, type: 'next' | 'previous'): void {
172172
const items = this.viewModel?.getItems();
173173
if (!items) {
174174
return;

0 commit comments

Comments
 (0)