File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/vs/workbench/contrib/mergeEditor/browser/view/editors Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 55
66import { CompareResult } from 'vs/base/common/arrays' ;
77import { IModelDeltaDecoration , MinimapPosition , OverviewRulerLane } from 'vs/editor/common/model' ;
8+ import { localize } from 'vs/nls' ;
89import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
910import { autorun , derivedObservable } from 'vs/workbench/contrib/audioCues/browser/observable' ;
1011import { LineRange } from 'vs/workbench/contrib/mergeEditor/browser/model/lineRange' ;
@@ -113,8 +114,17 @@ export class ResultCodeEditorView extends CodeEditorView {
113114 }
114115 const count = model . unhandledConflictsCount . read ( reader ) ;
115116
116- // TODO @joh
117- this . _detail . setLabel ( `${ count } Remaining Conflicts` ) ;
117+ this . _detail . setLabel ( count === 1
118+ ? localize (
119+ 'mergeEditor.remainingConflicts' ,
120+ '{0} Remaining Conflict' ,
121+ count
122+ )
123+ : localize (
124+ 'mergeEditor.remainingConflict' ,
125+ '{0} Remaining Conflicts' ,
126+ count
127+ ) ) ;
118128 } , 'update label' ) ) ;
119129 }
120130}
You can’t perform that action at this time.
0 commit comments