Skip to content

Commit

Permalink
scm container fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Jun 26, 2020
1 parent 4c28fbf commit 3158fc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/browser/parts/compositeBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ export class CompositeDragAndDrop implements ICompositeDragAndDrop {
const draggedViews = this.viewDescriptorService.getViewContainerModel(currentContainer)!.allViewDescriptors;

// ... all views must be movable
// Prevent moving scm explicitly TODO@joaomoreno remove when scm is moveable
return !draggedViews.some(v => !v.canMoveView) && currentContainer.id !== 'workbench.view.scm';
return !draggedViews.some(v => !v.canMoveView);
} else {
// Dragging an individual view
const viewDescriptor = this.viewDescriptorService.getViewDescriptorById(dragData.id);
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/scm/browser/scm.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ const viewContainer = Registry.as<IViewContainersRegistry>(ViewContainerExtensio
storageId: 'workbench.scm.views.state',
icon: Codicon.sourceControl.classNames,
alwaysUseContainerInfo: true,
order: 2
order: 2,
hideIfEmpty: true
}, ViewContainerLocation.Sidebar);

const viewsRegistry = Registry.as<IViewsRegistry>(ViewContainerExtensions.ViewsRegistry);
Expand Down

0 comments on commit 3158fc0

Please sign in to comment.