mirror of
				https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
				synced 2025-10-31 14:10:03 -06:00 
			
		
		
		
	Changing the extensions.json structure to have more order. Updating to version 1.1.0
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
							
								
								
									
										34
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								readme.md
									
									
									
									
									
								
							| @@ -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" | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
|     } | ||||
| ] | ||||
| ``` | ||||
|  | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| 1.0.25 | ||||
| 1.1.0 | ||||
		Reference in New Issue
	
	Block a user