-
Notifications
You must be signed in to change notification settings - Fork 28.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Drag and Drop for views #90917
Conversation
@@ -134,6 +142,18 @@ export class CompositeBar extends Widget implements ICompositeBar { | |||
} | |||
} | |||
} | |||
|
|||
if (this.compositeTransfer.hasData(DraggedViewIdentifier.prototype)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like we are duplicating this code in the compositeBar
and compositeBarActions
. Is it possible to have this code unified in one location?
@@ -128,6 +128,53 @@ export class ActivitybarPart extends Part implements IActivityBarService { | |||
getContextMenuActionsForComposite: () => [], | |||
getDefaultCompositeId: () => this.viewletService.getDefaultViewletId(), | |||
hidePart: () => this.layoutService.setSideBarHidden(true), | |||
dndHandler: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we are duplicating this code in the activityBar and the panelPart.
Could we use some shared CompositeDragAndDrop to be shared between this two parts?
#89729
Allows dragging views between containers (both existing and panel area).
Insights from testing: