Skip to content

Commit

Permalink
feat: support multi file copy
Browse files Browse the repository at this point in the history
Signed-off-by: MiaoWoo <[email protected]>
  • Loading branch information
502647092 authored and akosyakov committed Aug 6, 2019
1 parent 44a2ec7 commit bd04424
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/navigator/src/browser/navigator-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
}
Expand Down

0 comments on commit bd04424

Please sign in to comment.