Idea detail
native_host_binary
reqlan rq/distribution/native_host_binary.rq:4
Summary
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.
Navigation
Attributes
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | native_targets | reqlan rq/distribution/distribution.rq | native_host_binary |
| references | extension_host_target | reqlan rq/distribution/distribution.rq | native_host_binary |
| references | native_host_binary_development | reqlan rq/distribution/native_host_binary.rq | native_host_binary |
| references | published_host_native_install | reqlan rq/distribution/native_host_binary.rq | native_host_binary |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…