Fix symbol dnd selection (#235332)

This commit is contained in:
Matt Bierner authored and GitHub committed 2024-12-05 16:36:10 +00:00
1 parent 8cbf1e89e9
commit d8980958a4
1 file changed
+1 -1
@@ -306,7 +306,7 @@ export function hookUpSymbolAttachmentDragAndContextMenu(accessor: ServicesAcces
// Drag and drop
widget.draggable = true;
store.add(dom.addDisposableListener(widget, 'dragstart', e => {
instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, [attachment.value.uri], e));
instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, [{ resource: attachment.value.uri, selection: attachment.value.range }], e));
fillInSymbolsDragData([{
fsPath: attachment.value.uri.fsPath,