A place in a document. vscode.Position satisfies it.
Plain data on purpose. VS Code's edit builder validates its arguments with
instanceof, so a port cannot hand its objects straight to the platform
anyway — and once the adapter has to convert, plain data is the better half
of the boundary: it compares with toEqual, logs readably, and a fake can
produce it without a VS Code runtime.
A place in a document.
vscode.Positionsatisfies it.Plain data on purpose. VS Code's edit builder validates its arguments with
instanceof, so a port cannot hand its objects straight to the platform anyway — and once the adapter has to convert, plain data is the better half of the boundary: it compares withtoEqual, logs readably, and a fake can produce it without a VS Code runtime.