提交 3df75e91 编写于 作者: B Benjamin Pasero

back to IWorkbenchEditorService for creating file input (for #48275)

上级 2a54d296
......@@ -136,7 +136,7 @@ class FileEditorInputFactory implements IEditorInputFactory {
const resource = !!fileInput.resourceJSON ? URI.revive(fileInput.resourceJSON) : URI.parse(fileInput.resource);
const encoding = fileInput.encoding;
return accessor.get(IInstantiationService).createInstance(FileEditorInput, resource, encoding);
return accessor.get(IWorkbenchEditorService).createInput({ resource, encoding }) as FileEditorInput;
});
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册