@@ -14,7 +14,7 @@ import { IStatusbarItem } from 'vs/workbench/browser/parts/statusbar/statusbar';
1414import { Action } from 'vs/base/common/actions' ;
1515import { Language } from 'vs/base/common/platform' ;
1616import { UntitledEditorInput } from 'vs/workbench/common/editor/untitledEditorInput' ;
17- import { IFileEditorInput , EncodingMode , IEncodingSupport , toResource , SideBySideEditorInput , IEditor as IBaseEditor , IEditorInput } from 'vs/workbench/common/editor' ;
17+ import { IFileEditorInput , EncodingMode , IEncodingSupport , toResource , SideBySideEditorInput , IEditor as IBaseEditor , IEditorInput , SideBySideEditor } from 'vs/workbench/common/editor' ;
1818import { IDisposable , combinedDisposable , dispose , toDisposable } from 'vs/base/common/lifecycle' ;
1919import { IUntitledEditorService } from 'vs/workbench/services/untitled/common/untitledEditorService' ;
2020import { IEditorAction } from 'vs/editor/common/editorCommon' ;
@@ -769,7 +769,7 @@ export class EditorStatus implements IStatusbarItem {
769769 private onResourceEncodingChange ( resource : URI ) : void {
770770 const activeControl = this . editorService . activeControl ;
771771 if ( activeControl ) {
772- const activeResource = toResource ( activeControl . input , { supportSideBySide : true } ) ;
772+ const activeResource = toResource ( activeControl . input , { supportSideBySide : SideBySideEditor . MASTER } ) ;
773773 if ( activeResource && activeResource . toString ( ) === resource . toString ( ) ) {
774774 return this . onEncodingChange ( < IBaseEditor > activeControl ) ; // only update if the encoding changed for the active resource
775775 }
@@ -847,7 +847,7 @@ export class ChangeModeAction extends Action {
847847 }
848848
849849 const textModel = activeTextEditorWidget . getModel ( ) ;
850- const resource = this . editorService . activeEditor ? toResource ( this . editorService . activeEditor , { supportSideBySide : true } ) : null ;
850+ const resource = this . editorService . activeEditor ? toResource ( this . editorService . activeEditor , { supportSideBySide : SideBySideEditor . MASTER } ) : null ;
851851
852852 let hasLanguageSupport = ! ! resource ;
853853 if ( resource && resource . scheme === Schemas . untitled && ! this . untitledEditorService . hasAssociatedFilePath ( resource ) ) {
@@ -971,7 +971,7 @@ export class ChangeModeAction extends Action {
971971 let languageSelection : ILanguageSelection | undefined ;
972972 if ( pick === autoDetectMode ) {
973973 if ( textModel ) {
974- const resource = toResource ( activeEditor , { supportSideBySide : true } ) ;
974+ const resource = toResource ( activeEditor , { supportSideBySide : SideBySideEditor . MASTER } ) ;
975975 if ( resource ) {
976976 languageSelection = this . modeService . createByFilepathOrFirstLine ( resource . fsPath , textModel . getLineContent ( 1 ) ) ;
977977 }
@@ -1187,7 +1187,7 @@ export class ChangeEncodingAction extends Action {
11871187 return undefined ;
11881188 }
11891189
1190- const resource = toResource ( activeControl ! . input , { supportSideBySide : true } ) ;
1190+ const resource = toResource ( activeControl ! . input , { supportSideBySide : SideBySideEditor . MASTER } ) ;
11911191
11921192 return timeout ( 50 /* quick open is sensitive to being opened so soon after another */ )
11931193 . then ( ( ) => {
0 commit comments