Skip to content

Commit

Permalink
Enable dnd in chat references list (#209263)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz authored Apr 1, 2024
1 parent 6394792 commit 8460b73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/vs/workbench/contrib/chat/browser/chatListRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,20 @@ class ContentReferencesListPool extends Disposable {

getWidgetAriaLabel: () => localize('usedReferences', "Used References")
},
dnd: {
getDragURI: ({ reference }: IChatContentReference) => {
if ('variableName' in reference) {
return null;
} else if (URI.isUri(reference)) {
return reference.toString();
} else {
return reference.uri.toString();
}
},
dispose: () => { },
onDragOver: () => false,
drop: () => { },
},
});

return list;
Expand Down

0 comments on commit 8460b73

Please sign in to comment.