Skip to content

Commit d898095

Browse files
authored
Fix symbol dnd selection (microsoft#235332)
1 parent 8cbf1e8 commit d898095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export function hookUpSymbolAttachmentDragAndContextMenu(accessor: ServicesAcces
306306
// Drag and drop
307307
widget.draggable = true;
308308
store.add(dom.addDisposableListener(widget, 'dragstart', e => {
309-
instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, [attachment.value.uri], e));
309+
instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, [{ resource: attachment.value.uri, selection: attachment.value.range }], e));
310310

311311
fillInSymbolsDragData([{
312312
fsPath: attachment.value.uri.fsPath,

0 commit comments

Comments
 (0)