NOTEBOOK_CELL_SCHEME
constNOTEBOOK_CELL_SCHEME:"vscode-notebook-cell"='vscode-notebook-cell'
Defined in: libs/language/src/typeqlite-schema-owner.ts:17
Whose schema a document is part of (ADR-012 N4).
A workspace is one schema (ADR-008 D3): every .tql file in it adds to it. A notebook is its own schema, because
its cells run against a store of its own. So two notebooks must not see each other’s definitions, and neither must a
notebook and the workspace’s files. The owner of a document is the key that says which schema it belongs to:
- a notebook cell (
vscode-notebook-cell:) belongs to its notebook: the cell’s URI without its fragment; - everything else belongs to the workspace.
A definition is visible to a reference only when both have the same owner.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.