Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InMemoryTextResource

Resource implementation for 'mem-txt' URI scheme where content is saved in URI query.

Hierarchy

  • InMemoryTextResource

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

uri: URI

Methods

  • dispose(): void
  • readContents(options?: { encoding?: string }): Promise<string>
  • Reads latest content of this resource.

    If a resource supports versioning it updates version to latest. If a resource supports encoding it updates encoding to latest.

    Parameters

    • Optional options: { encoding?: string }
      • Optional encoding?: string

    Returns Promise<string>