Skip to content

createTestViewSnapshotSource

createTestViewSnapshotSource(text): Pick<EditorViewSnapshot, "textSnapshot" | "lineStartsView">

The two source fields every hand-built view snapshot needs, from one string.

string

Pick<EditorViewSnapshot, "textSnapshot" | "lineStartsView">