File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/files/common/editors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
111111
112112 setPreferredEncoding ( encoding : string ) : void {
113113 this . preferredEncoding = encoding ;
114- this . forceOpenAs = ForceOpenAs . Text ; // encoding is a good hint to open the file as text
114+ this . setForceOpenAsText ( ) ; // encoding is a good hint to open the file as text
115115 }
116116
117117 getPreferredMode ( ) : string | undefined {
@@ -129,7 +129,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
129129
130130 setPreferredMode ( mode : string ) : void {
131131 this . preferredMode = mode ;
132- this . forceOpenAs = ForceOpenAs . Text ; // mode is a good hint to open the file as text
132+ this . setForceOpenAsText ( ) ; // mode is a good hint to open the file as text
133133 }
134134
135135 setForceOpenAsText ( ) : void {
You can’t perform that action at this time.
0 commit comments