Skip to content

Commit 4753340

Browse files
committed
Call setForceOpenAsText
1 parent 7f96c0c commit 4753340

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/files/common/editors/fileEditorInput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)