Path: blob/main/src/vs/editor/browser/widget/multiDiffEditor/model.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Event, IValueWithChangeEvent } from '../../../../base/common/event.js';6import { RefCounted } from '../diffEditor/utils.js';7import { IDiffEditorOptions } from '../../../common/config/editorOptions.js';8import { ITextModel } from '../../../common/model.js';9import { ContextKeyValue } from '../../../../platform/contextkey/common/contextkey.js';1011export interface IMultiDiffEditorModel {12readonly documents: IValueWithChangeEvent<readonly RefCounted<IDocumentDiffItem>[] | 'loading'>;13readonly contextKeys?: Record<string, ContextKeyValue>;14}1516export interface IDocumentDiffItem {17/**18* undefined if the file was created.19*/20readonly original: ITextModel | undefined;2122/**23* undefined if the file was deleted.24*/25readonly modified: ITextModel | undefined;26readonly options?: IDiffEditorOptions;27readonly onOptionsDidChange?: Event<void>;28readonly contextKeys?: Record<string, ContextKeyValue>;29}303132