提交 47533403 编写于 作者: M Matt Bierner

Call setForceOpenAsText

上级 7f96c0cc
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册