Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MutableResource

Hierarchy

  • MutableResource

Implements

Index

Constructors

Properties

contents: string = ''
onDidChangeContents: Event<void> = ...
onDidChangeContentsEmitter: Emitter<void> = ...
uri: URI

Methods

  • dispose(): void
  • fireDidChangeContents(): void
  • readContents(): Promise<string>
  • saveContents(contents: string): Promise<void>
  • Rewrites the complete content for this resource. If a resource does not exist it will be created.

    If a resource supports versioning clients can pass some version to check against it, if it is not provided latest version is used.

    It updates version and encoding to latest.

    Parameters

    • contents: string

    Returns Promise<void>