Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add when functionality for setting properties (#4159)
### What does this PR do? Adds the ability to use "when" statements for setting properties. For example, if you want to only show certain settings for certain operating systems by using `"when": "isLinux"`. ### Screenshot/screencast of this PR ### What issues does this PR fix or reference? Closes #4141 ### How to test this PR? Edit `extensions/podman/package.json` configuration for binary path to: ```json "podman.binary.path": { "type": "string", "format": "file", "default": "", "description": "Custom path to Podman binary (Default is blank)", "when": "isLinux" }, ``` When you check your preferences, it will now only show the binary path if you are running Linux. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
- Loading branch information
Showing
5 changed files
with
125 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters