Skip to content

Commit 403e837

Browse files
authored
[vscode] improve default user preferences in values.schema.json
1 parent 7456645 commit 403e837

4 files changed

Lines changed: 58 additions & 14 deletions

File tree

charts/vscode-pyspark/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type: application
2424
# This is the chart version. This version number should be incremented each time you make changes
2525
# to the chart and its templates, including the app version.
2626
# Versions are expected to follow Semantic Versioning (https://semver.org/)
27-
version: 2.2.11
27+
version: 2.2.12
2828
dependencies:
2929
- name: library-chart
3030
version: 1.6.13

charts/vscode-pyspark/values.schema.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@
940940
}
941941
},
942942
"userPreferences": {
943-
"description": "User Preferences",
943+
"title": "User Preferences",
944944
"type": "object",
945945
"properties": {
946946
"darkMode": {
@@ -962,6 +962,7 @@
962962
}
963963
},
964964
"aiAssistant":{
965+
"title": "AI Assistant",
965966
"type": "object",
966967
"description": "Configure Continue, an extension to use custom AI code assistants",
967968
"x-onyxia": {
@@ -979,39 +980,60 @@
979980
"model": {
980981
"type": "string",
981982
"default":"",
982-
"hidden": true,
983+
"hidden": {
984+
"value": false,
985+
"path": "enabled",
986+
"isPathRelative": true
987+
},
983988
"x-onyxia": {
984989
"overwriteDefaultWith": "user.profile.aiAssistant.model"
985990
}
986991
},
987992
"provider": {
988993
"type": "string",
989994
"default": "",
990-
"hidden": true,
995+
"hidden": {
996+
"value": false,
997+
"path": "enabled",
998+
"isPathRelative": true
999+
},
9911000
"x-onyxia": {
9921001
"overwriteDefaultWith": "user.profile.aiAssistant.provider"
9931002
}
9941003
},
9951004
"apiBase":{
9961005
"type": "string",
9971006
"default": "",
998-
"hidden": true,
1007+
"hidden": {
1008+
"value": false,
1009+
"path": "enabled",
1010+
"isPathRelative": true
1011+
},
9991012
"x-onyxia": {
10001013
"overwriteDefaultWith": "user.profile.aiAssistant.apiBase"
10011014
}
10021015
},
10031016
"apiKey":{
10041017
"type": "string",
10051018
"default": "",
1006-
"hidden": true,
1019+
"hidden": {
1020+
"value": false,
1021+
"path": "enabled",
1022+
"isPathRelative": true
1023+
},
10071024
"x-onyxia": {
10081025
"overwriteDefaultWith": "user.profile.aiAssistant.apiKey"
10091026
}
10101027
},
10111028
"useLegacyCompletionsEndpoint":{
1029+
"title": "use legacy completions endpoint",
10121030
"type": "boolean",
10131031
"default": true,
1014-
"hidden": true,
1032+
"hidden": {
1033+
"value": false,
1034+
"path": "enabled",
1035+
"isPathRelative": true
1036+
},
10151037
"x-onyxia": {
10161038
"overwriteDefaultWith": "user.profile.aiAssistant.useLegacyCompletionsEndpoint"
10171039
}

charts/vscode-python/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 2.2.11
25+
version: 2.2.12
2626
dependencies:
2727
- name: library-chart
2828
version: 1.6.13

charts/vscode-python/values.schema.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@
887887
}
888888
},
889889
"userPreferences": {
890-
"description": "User Preferences",
890+
"title": "User Preferences",
891891
"type": "object",
892892
"properties": {
893893
"darkMode": {
@@ -909,6 +909,7 @@
909909
}
910910
},
911911
"aiAssistant":{
912+
"title": "AI Assistant",
912913
"type": "object",
913914
"description": "Configure Continue, an extension to use custom AI code assistants",
914915
"x-onyxia": {
@@ -926,39 +927,60 @@
926927
"model": {
927928
"type": "string",
928929
"default":"",
929-
"hidden": true,
930+
"hidden": {
931+
"value": false,
932+
"path": "enabled",
933+
"isPathRelative": true
934+
},
930935
"x-onyxia": {
931936
"overwriteDefaultWith": "user.profile.aiAssistant.model"
932937
}
933938
},
934939
"provider": {
935940
"type": "string",
936941
"default": "",
937-
"hidden": true,
942+
"hidden": {
943+
"value": false,
944+
"path": "enabled",
945+
"isPathRelative": true
946+
},
938947
"x-onyxia": {
939948
"overwriteDefaultWith": "user.profile.aiAssistant.provider"
940949
}
941950
},
942951
"apiBase":{
943952
"type": "string",
944953
"default": "",
945-
"hidden": true,
954+
"hidden": {
955+
"value": false,
956+
"path": "enabled",
957+
"isPathRelative": true
958+
},
946959
"x-onyxia": {
947960
"overwriteDefaultWith": "user.profile.aiAssistant.apiBase"
948961
}
949962
},
950963
"apiKey":{
951964
"type": "string",
952965
"default": "",
953-
"hidden": true,
966+
"hidden": {
967+
"value": false,
968+
"path": "enabled",
969+
"isPathRelative": true
970+
},
954971
"x-onyxia": {
955972
"overwriteDefaultWith": "user.profile.aiAssistant.apiKey"
956973
}
957974
},
958975
"useLegacyCompletionsEndpoint":{
976+
"title": "use legacy completions endpoint",
959977
"type": "boolean",
960978
"default": true,
961-
"hidden": true,
979+
"hidden": {
980+
"value": false,
981+
"path": "enabled",
982+
"isPathRelative": true
983+
},
962984
"x-onyxia": {
963985
"overwriteDefaultWith": "user.profile.aiAssistant.useLegacyCompletionsEndpoint"
964986
}

0 commit comments

Comments
 (0)