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:
Digvijay Shelar 2023-10-05 18:05:14 +05:30 committed by GitHub
parent 20d78046f5
commit 4e62066901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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> {