Skip to content

Commit 05e6a5b

Browse files
committed
fix drag file with err uri
1 parent f9f4fce commit 05e6a5b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/core/src/browser/shell/application-shell.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,7 @@ export class ApplicationShell extends Widget {
574574
// the files were dragged from the outside the workspace
575575
Array.from(event.dataTransfer.files).forEach(file => {
576576
if (file.path) {
577-
const fileUri = URI.fromComponents({
578-
scheme: 'file',
579-
path: file.path,
580-
authority: '',
581-
query: '',
582-
fragment: ''
583-
});
577+
const fileUri = URI.fromFilePath(file.path);
584578
openUri(fileUri);
585579
}
586580
});

0 commit comments

Comments
 (0)