src/vs/editor/common/model/textModel.ts/createTextBufferFactory
export function createTextBufferFactory(text: string): model.ITextBufferFactory {
	const builder = createTextBufferBuilder();
	builder.acceptChunk(text);
	return builder.finish();
}