UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

24 lines (22 loc) 1.14 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IBufferMarkCapability, TerminalCapability, IMarkProperties } from './capabilities.mjs'; import type { IMarker, Terminal } from 'xterm-headless'; /** * Manages "marks" in the buffer which are lines that are tracked when lines are added to or removed * from the buffer. */ export declare class BufferMarkCapability implements IBufferMarkCapability { private readonly _terminal; readonly type = TerminalCapability.BufferMarkDetection; private _idToMarkerMap; private _anonymousMarkers; private readonly _onMarkAdded; readonly onMarkAdded: import('@sussudio/base/common/event.mjs').Event<IMarkProperties>; constructor(_terminal: Terminal); markers(): IterableIterator<IMarker>; addMark(properties?: IMarkProperties): void; getMark(id: string): IMarker | undefined; }