Skip to content

Commit

Permalink
Add "new session" to chat context menu (#198376)
Browse files Browse the repository at this point in the history
From discussion
  • Loading branch information
roblourens authored Nov 16, 2023
1 parent 36dee1f commit 956bfb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,23 @@ export function registerClearActions() {
primary: KeyMod.WinCtrl | KeyCode.KeyL
},
when: CONTEXT_IN_CHAT_SESSION
},
menu: {
id: MenuId.ChatContext,
group: 'z_clear'
}
});
}

run(accessor: ServicesAccessor, ...args: any[]) {
announceChatCleared(accessor);
const widgetService = accessor.get(IChatWidgetService);

const widget = widgetService.lastFocusedWidget;
if (!widget) {
return;
}

announceChatCleared(accessor);
widget.clear();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export function registerChatCopyActions() {
f1: false,
category: CHAT_CATEGORY,
menu: {
id: MenuId.ChatContext
id: MenuId.ChatContext,
group: 'copy',
}
});
}
Expand Down Expand Up @@ -56,7 +57,8 @@ export function registerChatCopyActions() {
f1: false,
category: CHAT_CATEGORY,
menu: {
id: MenuId.ChatContext
id: MenuId.ChatContext,
group: 'copy',
}
});
}
Expand Down

0 comments on commit 956bfb6

Please sign in to comment.