Skip to content

Commit 2ab5e3f

Browse files
authored
Mark conflict as handled on first interaction (microsoft#166379)
1 parent 41cdd51 commit 2ab5e3f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,9 @@ export class MergeEditorModel extends EditorModel {
442442
}
443443
}
444444

445-
if (markInputAsHandled !== false) {
446-
if (markInputAsHandled === true || markInputAsHandled === 1) {
447-
existingState.handledInput1.set(true, transaction);
448-
}
449-
if (markInputAsHandled === true || markInputAsHandled === 2) {
450-
existingState.handledInput2.set(true, transaction);
451-
}
452-
}
445+
// always set conflict as handled
446+
existingState.handledInput1.set(true, transaction);
447+
existingState.handledInput2.set(true, transaction);
453448
}
454449

455450
public resetDirtyConflictsToBase(): void {

0 commit comments

Comments
 (0)