Class MemoryFile

Class representing an in-memory text file.

Hierarchy

  • MemoryFile

Constructors

Properties

Methods

Constructors

Properties

content: string = ""
uri: Uri

Methods

  • Gets the vscode.Uri that this file corresponds to. Only the path and scheme are guaranteed to be set.

    Returns

    Returns Uri

  • Reads the contents of this in-memory file as a string.

    Returns

    the contents of the file

    Returns string

  • Appends content to this in-memory file.

    Parameters

    • strContent: string

      content to append

    Returns void

Generated using TypeDoc