import { DisposableStore } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { URI } from "../../../../base/common/uri.js"; import type { MultiDiffEditorVariant } from "../../../../editor/common/multiDiffEditor.js"; import { MenuId } from "../../../../platform/actions/common/actions.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; /** The editor pane identifier of the multi diff editor. */ export declare const MULTI_DIFF_EDITOR_ID = "multiDiffEditor"; export declare const multiDiffEditorExperimentalVariantSetting = "multiDiffEditor.experimental.variant"; export declare const defaultMultiDiffEditorExperimentalVariant = "noCards"; export declare const multiDiffEditorExperimentalFileListSetting = "multiDiffEditor.experimental.fileList"; export type MultiDiffEditorExperimentalVariant = "cards" | "noCards"; export declare function getWorkbenchMultiDiffEditorVariant(variant: MultiDiffEditorExperimentalVariant): MultiDiffEditorVariant; export declare function observableWorkbenchMultiDiffEditorVariant(owner: object, configurationService: IConfigurationService): IObservable; export declare const MultiDiffEditorFileListAvailableContext: RawContextKey; export declare const MultiDiffEditorFileListEnabledContext: RawContextKey; /** Whether the file list is currently rendered, including responsive hiding. */ export declare const MultiDiffEditorFileListVisibleContext: RawContextKey; export declare const MultiDiffEditorFileListFocusedContext: RawContextKey; /** Whether the active editor is a multi diff editor that supports the changed files list. */ export declare const ActiveMultiDiffEditorHasFileListContext: import("../../../../platform/contextkey/common/contextkey.js").ContextKeyExpression; /** The submenu that switches the changed files list between a list and a tree, and moves it to either side of the diffs. */ export declare const MultiDiffEditorFilesViewAndPositionMenu: MenuId; /** * Observes whether the file list should be shown. All multi diff editors share * the state, so toggling the list in one editor updates the others. */ export declare function observableMultiDiffEditorFileListVisible(owner: object, configurationService: IConfigurationService, storageService: IStorageService, store: DisposableStore): IObservable; /** Shows the file list if the user has hidden it, and hides it otherwise. */ export declare function toggleMultiDiffEditorFileList(storageService: IStorageService): void; export type MultiDiffEditorFileListViewMode = "list" | "tree"; export declare const MultiDiffEditorFileListViewModeContext: RawContextKey; /** Observes the view mode of the file list, shared by all multi diff editors. */ export declare function observableMultiDiffEditorFileListViewMode(owner: object, storageService: IStorageService, store: DisposableStore): IObservable; export declare function setMultiDiffEditorFileListViewMode(storageService: IStorageService, viewMode: MultiDiffEditorFileListViewMode): void; /** * Sorts items in the order in which the file list shows them, like the Source * Control view: by path in the flat list, and folders first in the tree. */ export declare function sortMultiDiffEditorFileListItems(items: readonly T[], getUri: (item: T) => URI, viewMode: MultiDiffEditorFileListViewMode): T[]; export type MultiDiffEditorFileListPosition = "left" | "right"; export declare const MultiDiffEditorFileListPositionContext: RawContextKey; /** Observes the position of the file list, shared by all multi diff editors. */ export declare function observableMultiDiffEditorFileListPosition(owner: object, storageService: IStorageService, store: DisposableStore): IObservable; export declare function setMultiDiffEditorFileListPosition(storageService: IStorageService, position: MultiDiffEditorFileListPosition): void;