import { createDecorator } from "../../instantiation/common/instantiation.mjs";
class Progress {
  constructor(callback) {
    this.callback = callback;
  }
  report(item) {
    this._value = item;
    this.callback(this._value);
  }
}
Progress.None = Object.freeze({ report() {
} });
const IEditorProgressService = createDecorator("editorProgressService");
export {
  IEditorProgressService,
  Progress
};
