import { Event, IValueWithChangeEvent } from "../../../../base/common/event.js"; import { RefCounted } from "../diffEditor/utils.js"; import { IDiffEditorOptions } from "../../../common/config/editorOptions.js"; import { ITextModel } from "../../../common/model.js"; import { ContextKeyValue } from "../../../../platform/contextkey/common/contextkey.js"; export interface IMultiDiffEditorModel { readonly documents: IValueWithChangeEvent[] | "loading">; readonly contextKeys?: Record; } export interface IDocumentDiffItem { /** * undefined if the file was created. */ readonly original: ITextModel | undefined; /** * undefined if the file was deleted. */ readonly modified: ITextModel | undefined; readonly options?: IDiffEditorOptions; readonly onOptionsDidChange?: Event; readonly contextKeys?: Record; }