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 5
5
6
6
import { CompareResult } from 'vs/base/common/arrays' ;
7
7
import { IModelDeltaDecoration , MinimapPosition , OverviewRulerLane } from 'vs/editor/common/model' ;
8
+ import { localize } from 'vs/nls' ;
8
9
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
9
10
import { autorun , derivedObservable } from 'vs/workbench/contrib/audioCues/browser/observable' ;
10
11
import { LineRange } from 'vs/workbench/contrib/mergeEditor/browser/model/lineRange' ;
@@ -113,8 +114,17 @@ export class ResultCodeEditorView extends CodeEditorView {
113
114
}
114
115
const count = model . unhandledConflictsCount . read ( reader ) ;
115
116
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
+ ) ) ;
118
128
} , 'update label' ) ) ;
119
129
}
120
130
}
You can’t perform that action at this time.
0 commit comments