src/vs/workbench/common/editor.ts/EditorFactoryRegistry/registerFileEditorFactory
class EditorFactoryRegistry:	registerFileEditorFactory(factory: IFileEditorFactory): void {
		if (this.fileEditorFactory) {
			throw new Error('Can only register one file editor factory.');
		}

		this.fileEditorFactory = factory;
	}