From 47533403577ae8a8be4ab948eb3054a9d2d4269f Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 13 Sep 2019 17:46:16 -0700 Subject: [PATCH] Call setForceOpenAsText --- .../workbench/contrib/files/common/editors/fileEditorInput.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/files/common/editors/fileEditorInput.ts b/src/vs/workbench/contrib/files/common/editors/fileEditorInput.ts index 7861e714eb2..50ebb4b3325 100644 --- a/src/vs/workbench/contrib/files/common/editors/fileEditorInput.ts +++ b/src/vs/workbench/contrib/files/common/editors/fileEditorInput.ts @@ -111,7 +111,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput { setPreferredEncoding(encoding: string): void { this.preferredEncoding = encoding; - this.forceOpenAs = ForceOpenAs.Text; // encoding is a good hint to open the file as text + this.setForceOpenAsText(); // encoding is a good hint to open the file as text } getPreferredMode(): string | undefined { @@ -129,7 +129,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput { setPreferredMode(mode: string): void { this.preferredMode = mode; - this.forceOpenAs = ForceOpenAs.Text; // mode is a good hint to open the file as text + this.setForceOpenAsText(); // mode is a good hint to open the file as text } setForceOpenAsText(): void { -- GitLab