Skip to main content

Module FileReadNative

Module FileReadNative 

Source
Expand description

Wire method file:read / file:readFile.

Returns { buffer: number[] }. VS Code’s DiskFileSystemProviderClient wraps the payload with VSBuffer.wrap(). The explicit byte array is required because FileProtocolShim used to return a struct with a number[] field and any change to that shape breaks the Blob worker round-trip - see feedback_ipc_binary_fetch.md.

Functions§

FileReadNative