monaco-editor-core
Version:
A browser based code editor
19 lines • 611 B
JavaScript
import { createDecorator } from '../../instantiation/common/instantiation.js';
export const IProgressService = createDecorator('progressService');
export const emptyProgressRunner = Object.freeze({
total() { },
worked() { },
done() { }
});
export class Progress {
static { this.None = Object.freeze({ report() { } }); }
constructor(callback) {
this.callback = callback;
}
report(item) {
this._value = item;
this.callback(this._value);
}
}
export const IEditorProgressService = createDecorator('editorProgressService');
//# sourceMappingURL=progress.js.map