File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/vs/workbench/contrib/mergeEditor/browser/view/editors Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import * as dom from 'vs/base/browser/dom' ;
7
7
import { Toggle } from 'vs/base/browser/ui/toggle/toggle' ;
8
- import { Action , IAction } from 'vs/base/common/actions' ;
8
+ import { Action , IAction , Separator } from 'vs/base/common/actions' ;
9
9
import { Codicon } from 'vs/base/common/codicons' ;
10
10
import { Disposable } from 'vs/base/common/lifecycle' ;
11
11
import { noBreakWhitespace } from 'vs/base/common/strings' ;
@@ -185,6 +185,7 @@ export class InputCodeEditorView extends CodeEditorView {
185
185
{ enabled : baseRange . canBeCombined }
186
186
)
187
187
: undefined ,
188
+ new Separator ( ) ,
188
189
baseRange . isConflicting
189
190
? setFields (
190
191
action (
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