From bd044245d03583949ec2026e274819094b0ca659 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Tue, 6 Aug 2019 02:26:01 +0000 Subject: [PATCH] feat: support multi file copy Signed-off-by: MiaoWoo --- packages/navigator/src/browser/navigator-widget.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/navigator/src/browser/navigator-widget.tsx b/packages/navigator/src/browser/navigator-widget.tsx index ab794d8b15f59..27222f8487d60 100644 --- a/packages/navigator/src/browser/navigator-widget.tsx +++ b/packages/navigator/src/browser/navigator-widget.tsx @@ -183,9 +183,11 @@ export class FileNavigatorWidget extends FileTreeWidget { if (!raw) { return; } - const uri = new URI(raw); - if (this.model.copy(uri)) { - event.preventDefault(); + for (const file of raw.split('\n')) { + const uri = new URI(file); + if (this.model.copy(uri)) { + event.preventDefault(); + } } } }