Options
All
  • Public
  • Public/Protected
  • All
Menu

Frontend component.

Wraps the remote filesystem provider living on the backend.

Hierarchy

  • RemoteFileSystemProvider

Implements

Index

Constructors

Properties

onDidChangeCapabilities: Event<void> = ...
onDidChangeCapabilitiesEmitter: Emitter<void> = ...
onDidChangeFile: Event<readonly FileChange[]> = ...
onDidChangeFileEmitter: Emitter<readonly FileChange[]> = ...
onFileStreamData: Event<[number, Uint8Array]> = ...
onFileStreamDataEmitter: Emitter<[number, Uint8Array]> = ...
onFileStreamEnd: Event<[number, undefined | Error | FileSystemProviderError]> = ...
onFileStreamEndEmitter: Emitter<[number, undefined | Error | FileSystemProviderError]> = ...
onFileWatchError: Event<void> = ...
onFileWatchErrorEmitter: Emitter<void> = ...
ready: Promise<void> = ...
readyDeferred: Deferred<void> = ...
server: JsonRpcProxy<RemoteFileSystemServer>

Wrapped remote filesystem.

toDispose: DisposableCollection = ...
watchOptions: Map<number, { options: WatchOptions; uri: string }> = ...

We'll track the currently allocated watchers, in order to re-allocate them with the same options once we reconnect to the backend after a disconnection.

watcherSequence: number = 0

Accessors

Methods

  • access(resource: URI, mode?: number): Promise<void>
  • close(fd: number): Promise<void>
  • dispose(): void
  • fsPath(resource: URI): Promise<string>
  • init(): void
  • mkdir(resource: URI): Promise<void>
  • read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • readFile(resource: URI): Promise<Uint8Array>
  • readFileStream(resource: URI, opts: FileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>
  • readdir(resource: URI): Promise<[string, FileType][]>
  • reconnect(): void
  • stat(resource: URI): Promise<Stat>
  • write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void>