1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/code-server_ynh.git synced 2024-09-03 18:16:28 +02:00

add doc link on Extension Gallery in config panel

This commit is contained in:
Tagadda 2022-01-30 17:02:23 +00:00
parent b29314d5e1
commit a9eed980de
2 changed files with 9 additions and 7 deletions

View file

@ -1,11 +1,5 @@
version = "1.0"
## (optional) i18n property let you internationalize questions, however this feature
## is only available in core configuration panel (like yunohost domain config).
## So in app config panel this key is ignored for now, but you can internationalize
## by using a lang dictionary (see property name bellow)
# i18n = "prefix_translation_key"
[main]
name = "Main configuration"
services = ["__APP__"]
@ -31,10 +25,16 @@ services = ["__APP__"]
name = "Extensions"
optional = false
[main.extensions.extensions_gallery_info]
type = "display_text"
ask = "Read more about the Extention Gallery on [code-server FAQ](https://coder.com/docs/code-server/latest/FAQ#why-cant-code-server-use-microsofts-extension-marketplace)."
style = "info"
[main.extensions.extensions_gallery]
ask = "Extensions Gallery"
type = "string"
example = "{\"serviceUrl\": \"https://open-vsx.org/vscode/gallery\",\"itemUrl\": \"https://open-vsx.org/vscode/item\"}"
help = "[Documentation](https://coder.com/docs/code-server/latest/FAQ#how-do-i-use-my-own-extensions-marketplace)"
optional = false
bind = ":/opt/yunohost/__APP__/code-server.env"

View file

@ -28,6 +28,8 @@ get__enable_proposed_api() {
echo "$(awk '/enable-proposed-api:/ {print $2}' $final_path/config.yaml)"
}
# TODO: Write some getters and setters for __EXTENSIONS_GALLERY__ to go back to json directly
#=================================================
# SPECIFIC VALIDATORS FOR TOML SHORT KEYS
#=================================================