@@ -152,29 +152,32 @@ export class InputCodeEditorView extends CodeEditorView {
152152 return [
153153 baseRange . input1Diffs . length > 0
154154 ? action (
155- 'mergeEditor.takeInput1 ' ,
156- localize ( 'mergeEditor.takeInput1 ' , 'Take Input 1' ) ,
155+ 'mergeEditor.acceptInput1 ' ,
156+ localize ( 'mergeEditor.accept ' , 'Accept ' ) + model . input1Title ,
157157 state . toggle ( 1 ) ,
158158 state . input1
159159 )
160160 : undefined ,
161161 baseRange . input2Diffs . length > 0
162162 ? action (
163- 'mergeEditor.takeInput2 ' ,
164- localize ( 'mergeEditor.takeInput2 ' , 'Take Input 2' ) ,
163+ 'mergeEditor.acceptInput2 ' ,
164+ localize ( 'mergeEditor.accept ' , 'Accept ' ) + model . input2Title ,
165165 state . toggle ( 2 ) ,
166166 state . input2
167167 )
168168 : undefined ,
169169 baseRange . isConflicting
170- ? action (
171- 'mergeEditor.takeBothSides' ,
172- localize (
173- 'mergeEditor.takeBothSides' ,
174- 'Take Both Sides'
170+ ? setFields (
171+ action (
172+ 'mergeEditor.acceptBoth' ,
173+ localize (
174+ 'mergeEditor.acceptBoth' ,
175+ 'Accept Both'
176+ ) ,
177+ state . withInput1 ( ! both ) . withInput2 ( ! both ) ,
178+ both
175179 ) ,
176- state . withInput1 ( ! both ) . withInput2 ( ! both ) ,
177- both
180+ { enabled : true } // TODO
178181 )
179182 : undefined ,
180183 baseRange . isConflicting
0 commit comments