Skip to content

Commit 2d7c099

Browse files
authored
fix: Document symbol should not be dropped to Project explorer (#651)
Signed-off-by: sheche <[email protected]>
1 parent a16aad3 commit 2d7c099

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/views/DragAndDropController.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ export class DragAndDropController implements TreeDragAndDropController<Explorer
6464
if (uri.scheme !== "file") {
6565
return undefined;
6666
}
67+
// Ideally, the file dragged from file explorer should not contain fragment
68+
// in its uri. If it does, then the uri should be generated from dragging document
69+
// symbol node from the Java Project explorer, and we should ignore it.
70+
if (uri.fragment) {
71+
return undefined;
72+
}
6773
return u;
6874
} catch (e) {
6975
sendError(e);

0 commit comments

Comments
 (0)