Skip to content

Commit

Permalink
fix drag file with err uri
Browse files Browse the repository at this point in the history
  • Loading branch information
yanquer committed Jan 21, 2025
1 parent f9f4fce commit 05e6a5b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,7 @@ export class ApplicationShell extends Widget {
// the files were dragged from the outside the workspace
Array.from(event.dataTransfer.files).forEach(file => {
if (file.path) {
const fileUri = URI.fromComponents({
scheme: 'file',
path: file.path,
authority: '',
query: '',
fragment: ''
});
const fileUri = URI.fromFilePath(file.path);
openUri(fileUri);
}
});
Expand Down

0 comments on commit 05e6a5b

Please sign in to comment.