Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UntitledResource

Hierarchy

  • UntitledResource

Implements

Index

Constructors

constructor

Properties

Private Optional content

content: undefined | string

Private Optional fileResource

fileResource: FileResource

Private fileResourceResolver

fileResourceResolver: FileResourceResolver

Readonly onDidChangeContents

onDidChangeContents: Event<void> = this.onDidChangeContentsEmitter.event

Protected Readonly onDidChangeContentsEmitter

onDidChangeContentsEmitter: Emitter<void> = new Emitter<void>()

Private resources

resources: Map<string, UntitledResource>

uri

uri: URI

Accessors

encoding

  • get encoding(): string | undefined

version

Methods

dispose

  • dispose(): void

Protected fireDidChangeContents

  • fireDidChangeContents(): void

guessEncoding

  • guessEncoding(): Promise<string | undefined>

readContents

  • readContents(options?: { encoding?: string | undefined } | undefined): Promise<string>

saveContentChanges

saveContents

  • saveContents(content: string, options?: undefined | { encoding?: undefined | string; overwriteEncoding?: undefined | false | true }): Promise<void>