mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
chore: document property setting in EXTENSIONS.md (#4221)
* chore: document property setting in EXTENSIONS.md Signed-off-by: Digvijay Shelar <82649533+shelar1423@users.noreply.github.com> Signed-off-by: Digvijay Shelar <82649533+shelar1423@users.noreply.github.com> Signed-off-by: Florent BENOIT <fbenoit@redhat.com> Co-authored-by: Florent BENOIT <fbenoit@redhat.com>
This commit is contained in:
parent
20d78046f5
commit
4e62066901
1 changed files with 19 additions and 1 deletions
|
|
@ -154,7 +154,25 @@ export class FoobarClient {
|
|||
}
|
||||
```
|
||||
|
||||
4. Last step! Call the new API call to the extension you are implementing from your extension:
|
||||
4.In package.json you can register some setting through the configuration settings property
|
||||
|
||||
For example if you contribute a property named `podman.binary.path` it will display `Path` in Podman Desktop UI setting, and if you change it to `podman.binary.pathToBinary ` it becomes `Path To Binary` in the title.
|
||||
|
||||
```ts
|
||||
|
||||
"configuration": {
|
||||
"title": "Podman",
|
||||
"properties": {
|
||||
"podman.binary.path": {
|
||||
"name": "Path to Podman Binary",
|
||||
"type": "string",
|
||||
"format": "file",
|
||||
"default": "",
|
||||
"description": "Custom path to Podman binary (Default is blank)"
|
||||
},
|
||||
```
|
||||
|
||||
5. Last step! Call the new API call to the extension you are implementing from your extension:
|
||||
|
||||
```ts
|
||||
export async function activate(extensionContext: extensionApi.ExtensionContext): Promise<void> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue