Changing the extensions.json structure to have more order. Updating to version 1.1.0

This commit is contained in:
Alejandro Lembke Barrientos 2023-09-01 17:07:46 +00:00
parent e1245da9de
commit 8bda7b330b
3 changed files with 34 additions and 8 deletions

View File

@ -20,8 +20,8 @@ if [ -f "/home/extensions.json" ]; then
# Read the JSON file into a variable
jsonExtensions=$(cat /home/extensions.json)
# Use jq to extract the array elements
extensions=$(echo $jsonExtensions | jq -r '.[]')
# Use jq to extract the extension parameter from the JSON array
extensions=$(echo $jsonExtensions | jq -r '.[].extensionsGroup[].extensions[].uniqueIdentifier')
# Loop through the extensions and process each element
for extension in $extensions; do

View File

@ -19,12 +19,38 @@ The following environment variables can be set when running the Docker container
### Adding VSCode Extensions
To add VSCode extensions to the container, create a JSON file with an array of strings containing the extension identifier of each extension you want to install. For example:
To add VSCode extensions to the container, create a JSON file with an array of objects containing the extension details you want to install, the only Mandatory field is uniqueIdentifier and follow this structure. For example:
```
[
"ms-python.python",
"ms-vscode.cpptools",
"ms-azuretools.vscode-docker"
[
{
"extensionsGroup": {
"description": "Extensions of Spanish Language Pack",
"extensions": [
{
"name": "Spanish Language Pack for Visual Studio Code",
"notes": "Extension of Spanish Language Pack for Visual Studio Code",
"uniqueIdentifier": "ms-ceintl.vscode-language-pack-es"
}
]
}
},
{
"extensionsGroup": {
"description": "Extensions of Github Copilot",
"extensions": [
{
"name": "GitHub Copilot",
"notes": "Extension of GitHub Copilot",
"uniqueIdentifier": "github.copilot"
},
{
"name": "GitHub Copilot Chat",
"notes": "Extension of GitHub Copilot Chat",
"uniqueIdentifier": "github.copilot-chat"
}
]
}
}
]
```

View File

@ -1 +1 @@
1.0.25
1.1.0