Printable idea sheet
native_host_binary
reqlan rq/distribution/native_host_binary.rq:4
Katz 0.144
Select the native core-engine binary from the extension host.
The host is the Node process that runs the extension.
Read `process.platform` and `process.arch` from that process.
Do not use the platform of the VS Code UI client.
Examples:
- UI on Windows and host on Linux SSH: use a linux tuple.
- UI on Windows and host on WSL: use a linux tuple.
- UI and host on macOS: use a darwin tuple.
Map the platform and the arch to one tuple in native_targets.
Load only the binary that matches that tuple.
Do not load a binary for a different tuple.
If the platform and the arch are not in native_targets, fail.
If the binary is missing, fail. Do not use sql. js.
Keep the loader map the same as native-targets.mjs.
Local development: native_host_binary_development.
Production distribution: native_host_binary_distributed.
Implementation: load-native.ts.
- status
- done
Interactive page: native_host_binary