mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
allow moving view containers always (#194607)
#194606 allow moving view containers always
This commit is contained in:
committed by
GitHub
parent
3705a1d30b
commit
08e9e778dc
@@ -59,11 +59,6 @@ export class CompositeDragAndDrop implements ICompositeDragAndDrop {
|
||||
}
|
||||
// ... on a different composite bar
|
||||
else {
|
||||
const viewsToMove = this.viewDescriptorService.getViewContainerModel(currentContainer)!.allViewDescriptors;
|
||||
if (viewsToMove.some(v => !v.canMoveView)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.viewDescriptorService.moveViewContainerToLocation(currentContainer, this.targetContainerLocation, this.getTargetIndex(targetCompositeId, before));
|
||||
}
|
||||
}
|
||||
@@ -118,11 +113,7 @@ export class CompositeDragAndDrop implements ICompositeDragAndDrop {
|
||||
return dragData.id !== targetCompositeId;
|
||||
}
|
||||
|
||||
// ... to another composite location
|
||||
const draggedViews = this.viewDescriptorService.getViewContainerModel(currentContainer)!.allViewDescriptors;
|
||||
|
||||
// ... all views must be movable
|
||||
return !draggedViews.some(view => !view.canMoveView);
|
||||
return true;
|
||||
} else {
|
||||
|
||||
// Dragging an individual view
|
||||
|
||||
Reference in New Issue
Block a user