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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PreparedDiffSyntaxSource(
side,lineStarts):PreparedDiffSyntaxSource
Parameters
Section titled “Parameters”DiffSyntaxSourceSide
lineStarts
Section titled “lineStarts”readonly number[]
Returns
Section titled “Returns”PreparedDiffSyntaxSource
Properties
Section titled “Properties”lineStarts
Section titled “lineStarts”
readonlylineStarts: readonlynumber[]
readonlyside:DiffSyntaxSourceSide
Accessors
Section titled “Accessors”tokens
Section titled “tokens”Get Signature
Section titled “Get Signature”get tokens():
EditorTokenStore
Returns
Section titled “Returns”EditorTokenStore
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Returns
Section titled “Returns”void
onDidChangeTokens()
Section titled “onDidChangeTokens()”onDidChangeTokens(
listener): () =>void
Fires when a theme change recolours the stream.
Parameters
Section titled “Parameters”listener
Section titled “listener”() => void
Returns
Section titled “Returns”() => void