Skip to content

Commit 65f9178

Browse files
committed
more info about IW specifics
1 parent ae19a25 commit 65f9178

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/interactive/browser/docs/interactive.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ When the `SimpleNotebookEditorModel` is requested to `load`, it will ask the `Wo
3030

3131
![editor registration](interactive.model.resolution.drawio.svg)
3232

33+
The `FileSystem` provider that is registered for `vscode-interactive` schema will always return an empty buffer for any read, and will drop all write requests as nothing is stored on disk for Interactive Window resources. The `notebookSerializer` that is registered for the `interactive` viewtype knows to return an empty notebook data model when it deserializes an empty buffer when the model is being resolved.
34+
35+
Restoring the interactive window happens through the `EditorModelCache`, where the full notebook data is stored, and can be used to repopulate the `EditorInput` without needing to go through the editor model resolution flow, effectively skipping any filesystem reads.
36+
3337
## UI/EH editor/document syncing
3438

3539
`EditorInput` is responsible for resolving models for the given resources but in Interactive Window it's much simpler as we are not resolving models ourselves but delegating to Notebook and TextEditor. `InteractiveEditorInput` does the coordination job.

0 commit comments

Comments
 (0)