@@ -8,7 +8,9 @@ import { Disposable } from 'vs/base/common/lifecycle';
8
8
import { derived , derivedObservableWithWritableCache , IObservable , IReader , ITransaction , observableFromEvent , observableValue , transaction } from 'vs/base/common/observable' ;
9
9
import { Range } from 'vs/editor/common/core/range' ;
10
10
import { ScrollType } from 'vs/editor/common/editorCommon' ;
11
+ import { localize } from 'vs/nls' ;
11
12
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
13
+ import { INotificationService } from 'vs/platform/notification/common/notification' ;
12
14
import { LineRange } from 'vs/workbench/contrib/mergeEditor/browser/model/lineRange' ;
13
15
import { MergeEditorModel } from 'vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel' ;
14
16
import { ModifiedBaseRange , ModifiedBaseRangeState } from 'vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange' ;
@@ -29,7 +31,8 @@ export class MergeEditorViewModel extends Disposable {
29
31
public readonly resultCodeEditorView : ResultCodeEditorView ,
30
32
public readonly baseCodeEditorView : IObservable < BaseCodeEditorView | undefined > ,
31
33
public readonly showNonConflictingChanges : IObservable < boolean > ,
32
- @IConfigurationService public readonly configurationService : IConfigurationService ,
34
+ @IConfigurationService private readonly configurationService : IConfigurationService ,
35
+ @INotificationService private readonly notificationService : INotificationService
33
36
) {
34
37
super ( ) ;
35
38
@@ -220,6 +223,7 @@ export class MergeEditorViewModel extends Disposable {
220
223
public toggleActiveConflict ( inputNumber : 1 | 2 ) : void {
221
224
const activeModifiedBaseRange = this . activeModifiedBaseRange . get ( ) ;
222
225
if ( ! activeModifiedBaseRange ) {
226
+ this . notificationService . error ( localize ( 'noConflictMessage' , "There is currently no conflict focused that can be toggled." ) ) ;
223
227
return ;
224
228
}
225
229
transaction ( tx => {
0 commit comments