TreeSitterWorkerRetentionSnapshot
TreeSitterWorkerRetentionSnapshot =
object
Properties
Section titled “Properties”documentCount
Section titled “documentCount”
readonlydocumentCount:number
documents
Section titled “documents”
readonlydocuments: readonlyobject[]
injectedMarkdownDocumentCount
Section titled “injectedMarkdownDocumentCount”
readonlyinjectedMarkdownDocumentCount:number
markdownDocumentCount
Section titled “markdownDocumentCount”
readonlymarkdownDocumentCount:number
markdownDocumentEntries
Section titled “markdownDocumentEntries”
readonlymarkdownDocumentEntries:number
projectionCleanupVisits
Section titled “projectionCleanupVisits”
readonlyprojectionCleanupVisits:number
Projection dependencies visited while disposing cached highlighting snapshots.
shared
Section titled “shared”
readonlyshared:object
languageCount
Section titled “languageCount”
readonlylanguageCount:number
parserCount
Section titled “parserCount”
readonlyparserCount:number
queryCount
Section titled “queryCount”
readonlyqueryCount:number
registeredLanguages
Section titled “registeredLanguages”
readonlyregisteredLanguages:number
runtimeCount
Section titled “runtimeCount”
readonlyruntimeCount:number
runtimeEntries
Section titled “runtimeEntries”
readonlyruntimeEntries:number
Includes failed runtime promises retained by the worker.
runtimes
Section titled “runtimes”
readonlyruntimes: readonlyobject[]
wasmMemory
Section titled “wasmMemory”
readonlywasmMemory: {kind:"uninitialized"; } | {bytes:number;kind:"committed";pages:number; }
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ kind: "uninitialized"; }
Type Literal
Section titled “Type Literal”{ bytes: number; kind: "committed"; pages: number; }
readonlybytes:number
Current shared Tree-sitter/Markdown linear-memory backing, including allocator capacity.
readonlykind:"committed"
readonlypages:number
WebAssembly pages of 65,536 bytes.
snapshotCount
Section titled “snapshotCount”
readonlysnapshotCount:number
source
Section titled “source”
readonlysource:object
documentCount
Section titled “documentCount”
readonlydocumentCount:number
pinCount
Section titled “pinCount”
readonlypinCount:number
readCount
Section titled “readCount”
readonlyreadCount:number
sourceUnits
Section titled “sourceUnits”
readonlysourceUnits:number
Logical UTF-16 units reachable from unique immutable source snapshots.
treeCount
Section titled “treeCount”
readonlytreeCount:number
Unique generic layer Tree objects. Markdown internal trees are unavailable.
unmeasuredBytes
Section titled “unmeasuredBytes”
readonlyunmeasuredBytes: readonly ("javascript-objects"|"source-strings"|"grammars-parsers-queries"|"trees"|"markdown-documents"|"worker-heap"|"wasm-committed"|"wasm-allocator-live")[]
unmeasuredResources
Section titled “unmeasuredResources”
readonlyunmeasuredResources: readonly ("markdown-parser-language-query-handles"|"markdown-tree-handles")[]