Merge pull request #23515 from gtardif/extension_binary_exec_on_host

Update extension documentation: the SDK to execute commands on the host is not restricted to binaries listed in the extension metadata.
This commit is contained in:
Guillaume Tardif
2025-10-10 15:59:50 +02:00
committed by GitHub
4 changed files with 5 additions and 6 deletions

View File

@@ -407,7 +407,7 @@ ___
**execHostCmd**(`cmd`): `Promise`<[`ExecResultV0`](ExecResultV0.md)\>
You can run binaries defined in the host section in the extension metadata.
Invoke a binary on the host. The binary is typically shipped with your extension using the host section in the extension metadata. Note that extensions run with user access rights, this API is not restricted to binaries listed in the host section of the extension metadata (some extensions might install software during user interaction, and invoke newly installed binaries even if not listed in the extension metadata)
```typescript
window.ddClient.execHostCmd(`cliShippedOnHost xxx`).then((cmdResult: any) => {