Skip to content

Commit

Permalink
Minor PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder committed Jan 19, 2023
1 parent 0deb955 commit 89a1b45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export class ApplicationShell extends Widget {
uris.forEach(openUri);
} else if (event.dataTransfer.files?.length > 0) {
// the files were dragged from the outside the workspace
Array.from(event.dataTransfer.files).forEach(async file => {
Array.from(event.dataTransfer.files).forEach(file => {
if (file.path) {
const fileUri = URI.fromComponents({
scheme: 'file',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class FileTreeWidget extends CompressedTreeWidget {
selectedNodes = [node];
}
this.setSelectedTreeNodesAsData(event.dataTransfer, node, selectedNodes);
const uris = selectedNodes.filter(n => FileStatNode.is(n)).map(n => (n as FileStatNode).fileStat.resource);
const uris = selectedNodes.filter(FileStatNode.is).map(n => n.fileStat.resource);
if (uris.length > 0) {
ApplicationShell.setDraggedEditorUris(event.dataTransfer, uris);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/tree/tree-views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class TreeViewExtImpl<T> implements Disposable {
private readonly nodes = new Map<string, TreeExtNode<T>>();
private pendingRefresh = Promise.resolve();

private localDataTransfer: DataTransfer = new DataTransfer();
private localDataTransfer = new DataTransfer();

private readonly toDispose = new DisposableCollection(
Disposable.create(() => this.clearAll()),
Expand Down

0 comments on commit 89a1b45

Please sign in to comment.