code: function createFilesPromise(fileList, emitter, basePath) {
  	var filesPromise = new common.PromiseContainer();
  	// Set an empty list of files to avoid race issues with
  	// file_list_modified not having been emitted yet
  	filesPromise.set(Promise.resolve(fileList.files));
  	emitter.on('file_list_modified', function (files) {
  		filesPromise.set(Promise.resolve(files))
  	});
  	return filesPromise;
  }
docs: Replicate filesPromise functionality from webServer. Unfortunately we can’t access the webServer child DI injector from here where the filesPromise lives.