import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { EditorInput } from "../../../../workbench/common/editor/editorInput.js"; import { ISessionEditorWorkingSetRestoreState, ISessionEditorWorkingSetOwner } from "@codingame/monaco-vscode-workbench-service-override/vscode/vs/sessions/contrib/layout/common/sessionEditorWorkingSet"; export declare const ISessionEditorWorkingSetService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Publishes the editor working-set restores that the session layout performs when the user * switches sessions or chats, so editors that a working set cannot serialize can follow it. */ export interface ISessionEditorWorkingSetService { readonly _serviceBrand: undefined; readonly restoreState: IObservable; /** Publishes a settled owner when changing to it does not require applying a working set. */ setCurrentOwner(owner: ISessionEditorWorkingSetOwner | undefined): void; /** * Registers a live editor whose state cannot be reconstructed after a * presentation-only Details collapse. Working-set transitions still close it * through its owning service; the layout only retains it while hiding Editor. */ registerEditorToRetain(input: EditorInput): IDisposable; /** Whether a Details-only collapse must leave `input` alive in the hidden editor group. */ shouldRetainEditor(input: EditorInput): boolean; /** * Marks the current queued owner as actively applying. Returns `false` when * the restore was superseded before it reached the sequencer. */ beginApply(owner: ISessionEditorWorkingSetOwner | undefined): boolean; /** * Marks a restore of `owner`'s working set until the returned handle is disposed. Restores * may overlap; the owner of the most recent one is reported once all of them settle. */ beginRestore(owner: ISessionEditorWorkingSetOwner | undefined): IDisposable; }