Skip to content

Commit 30092f4

Browse files
tisilentalexr00
andauthored
update gutterOffsetX range (dirtydiff , fold) (microsoft#184339)
* update gutterOffsetX range (dirtydiff , fold) * Update comment --------- Co-authored-by: Alex Ross <[email protected]>
1 parent bae0533 commit 30092f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/editor/contrib/folding/browser/folding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export class FoldingController extends Disposable implements IEditorContribution
413413
// const gutterOffsetX = data.offsetX - data.glyphMarginWidth - data.lineNumbersWidth - data.glyphMarginLeft;
414414

415415
// TODO@joao TODO@alex TODO@martin this is such that we don't collide with dirty diff
416-
if (gutterOffsetX < 5) { // the whitespace between the border and the real folding icon border is 5px
416+
if (gutterOffsetX < 4) { // the whitespace between the border and the real folding icon border is 4px
417417
return;
418418
}
419419

src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ export class DirtyDiffController extends Disposable implements DirtyDiffContribu
922922
const gutterOffsetX = data.offsetX - offsetLeftInGutter;
923923

924924
// TODO@joao TODO@alex TODO@martin this is such that we don't collide with folding
925-
if (gutterOffsetX < -3 || gutterOffsetX > 6) { // dirty diff decoration on hover is 9px wide
925+
if (gutterOffsetX < -3 || gutterOffsetX > 3) { // dirty diff decoration on hover is 6px wide
926926
return;
927927
}
928928

0 commit comments

Comments
 (0)