Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MutableResource

Hierarchy

  • MutableResource

Implements

Index

Constructors

constructor

Properties

Private contents

contents: string = ''

Readonly onDidChangeContents

onDidChangeContents: Event<void> = ...

Protected Readonly onDidChangeContentsEmitter

onDidChangeContentsEmitter: Emitter<void> = ...

Readonly uri

uri: default

Methods

dispose

  • dispose(): void

Protected fireDidChangeContents

  • fireDidChangeContents(): void

readContents

  • readContents(): Promise<string>

saveContents

  • 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>