UNPKG

@pkerschbaum/code-oss-file-service

Version:

VS Code ([microsoft/vscode](https://github.com/microsoft/vscode)) includes a rich "`FileService`" and "`DiskFileSystemProvider`" abstraction built on top of Node.js core modules (`fs`, `path`) and Electron's `shell` module. This package allows to use that

28 lines 983 B
import { Event } from '../../base/common/event'; export interface ISplice<T> { readonly start: number; readonly deleteCount: number; readonly toInsert: T[]; } export interface ISpliceable<T> { splice(start: number, deleteCount: number, toInsert: T[]): void; } export interface ISequence<T> { readonly elements: T[]; readonly onDidSplice: Event<ISplice<T>>; } export declare class Sequence<T> implements ISequence<T>, ISpliceable<T> { readonly elements: T[]; private readonly _onDidSplice; readonly onDidSplice: Event<ISplice<T>>; splice(start: number, deleteCount: number, toInsert?: T[]): void; } export declare class SimpleSequence<T> implements ISequence<T> { private _elements; get elements(): T[]; readonly onDidSplice: Event<ISplice<T>>; private disposable; constructor(elements: T[], onDidAdd: Event<T>, onDidRemove: Event<T>); dispose(): void; } //# sourceMappingURL=sequence.d.ts.map