Skip to content

Commit

Permalink
fix: restore two-step chat attachments (#229482)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl authored Sep 24, 2024
1 parent 325e2cd commit 03e7b15
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ class AttachContextAction extends Action2 {
const second = extractTextFromIconLabel(b.label).toUpperCase();

return compare(first, second);
}), '', clipboardService);
}), clipboardService, '');
}

private _show(quickInputService: IQuickInputService, commandService: ICommandService, widget: IChatWidget, quickChatService: IQuickChatService, quickPickItems: (IChatContextQuickPickItem | QuickPickItem)[], query: string = '', clipboardService?: IClipboardService) {
private _show(quickInputService: IQuickInputService, commandService: ICommandService, widget: IChatWidget, quickChatService: IQuickChatService, quickPickItems: (IChatContextQuickPickItem | QuickPickItem)[], clipboardService: IClipboardService, query: string = '') {

quickInputService.quickAccess.show(query, {
enabledProviderPrefixes: [
Expand All @@ -446,7 +446,7 @@ class AttachContextAction extends Action2 {
providerOptions: <AnythingQuickAccessProviderRunOptions>{
handleAccept: (item: IChatContextQuickPickItem) => {
if ('prefix' in item) {
this._show(quickInputService, commandService, widget, quickChatService, quickPickItems, item.prefix);
this._show(quickInputService, commandService, widget, quickChatService, quickPickItems, clipboardService, item.prefix);
} else {
if (!clipboardService) {
return;
Expand Down

0 comments on commit 03e7b15

Please sign in to comment.