Skip to content

PreparedDiffSyntaxSource

One source side’s parsed token stream and the session that recolours it on a theme change. Its creator owns it and disposes it. A shared owner lends separate DiffSyntaxSourceReader interests, whose disposal releases only that interest.

new PreparedDiffSyntaxSource(side, lineStarts): PreparedDiffSyntaxSource

DiffSyntaxSourceSide

readonly number[]

PreparedDiffSyntaxSource

readonly lineStarts: readonly number[]


readonly side: DiffSyntaxSourceSide

get tokens(): EditorTokenStore

EditorTokenStore

dispose(): void

void


onDidChangeTokens(listener): () => void

Fires when a theme change recolours the stream.

() => void

() => void