Skip to content

Commit c455231

Browse files
authored
Revert "Fix: diff editor arrow click enables breakpoint " (microsoft#181040)
1 parent 2c2dcae commit c455231

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
@@ -623,7 +623,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
623623
}));
624624

625625
// Revert change when an arrow is clicked.
626-
this._register(editor.onMouseUp(event => {
626+
this._register(editor.onMouseDown(event => {
627627
if (!event.event.rightButton && event.target.position && event.target.element?.className.includes('arrow-revert-change')) {
628628
const lineNumber = event.target.position.lineNumber;
629629
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.onMouseUp((e: IEditorMouseEvent) => {
193+
this._register(editor.onMouseDown((e: IEditorMouseEvent) => {
194194
if (!e.event.rightButton) {
195195
return;
196196
}

0 commit comments

Comments
 (0)