Skip to content

Commit 16307b3

Browse files
authored
Merge pull request microsoft#179130 from maxmmyron/bug/diff-breakpoint-clash
Fix: diff editor arrow click enables breakpoint
2 parents 58e72cb + bdf6efe commit 16307b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/editor/browser/widget/diffEditorWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
621621
}));
622622

623623
// Revert change when an arrow is clicked.
624-
this._register(editor.onMouseDown(event => {
624+
this._register(editor.onMouseUp(event => {
625625
if (!event.event.rightButton && event.target.position && event.target.element?.className.includes('arrow-revert-change')) {
626626
const lineNumber = event.target.position.lineNumber;
627627
const viewZone = event.target as editorBrowser.IMouseTargetViewZone | undefined;

src/vs/editor/browser/widget/inlineDiffMargin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class InlineDiffMargin extends Disposable {
190190
}
191191
}));
192192

193-
this._register(editor.onMouseDown((e: IEditorMouseEvent) => {
193+
this._register(editor.onMouseUp((e: IEditorMouseEvent) => {
194194
if (!e.event.rightButton) {
195195
return;
196196
}

0 commit comments

Comments
 (0)