Skip to content

Commit

Permalink
Remove editor drop target debug overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
MachineMitch21 authored May 28, 2022
1 parent 2c0c3aa commit 998f5d5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/vs/workbench/browser/parts/editor/editorDropTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,17 +407,6 @@ class DropOverlay extends Themable {
const splitWidthThreshold = editorControlWidth / 3; // offer to split left/right at 33%
const splitHeightThreshold = editorControlHeight / 3; // offer to split up/down at 33%

// Enable to debug the drop threshold square
// if (this.overlay) {
// let child = this.overlay.children.item(0) as HTMLElement || this.overlay.appendChild(document.createElement('div'));
// child.style.backgroundColor = 'rgba(255, 51, 51, 0.5)';
// child.style.position = 'absolute';
// child.style.width = (editorControlWidth - (2 * edgeWidthThreshold)) + 'px';
// child.style.height = (editorControlHeight - (2 * edgeHeightThreshold)) + 'px';
// child.style.left = edgeWidthThreshold + 'px';
// child.style.top = edgeHeightThreshold + 'px';
// }

// No split if mouse is above certain threshold in the center of the view
let splitDirection: GroupDirection | undefined;
if (
Expand Down

0 comments on commit 998f5d5

Please sign in to comment.