diff --git a/.devcontainer/README.md b/.devcontainer/README.md index a7193616..00f6c5bf 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -1,38 +1,37 @@ # devcontainer - -For format details, see https://aka.ms/devcontainer.json. +For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet - -``` json -{ - "name": "Puppet Development Kit (Community)", - "dockerFile": "Dockerfile", - - // Set *default* container specific settings.json values on container create. - "settings": { - "terminal.integrated.profiles.linux": { - "bash": { - "path": "bash", - } - } - }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "puppet.puppet-vscode", - "rebornix.Ruby" - ], - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "pdk --version", +```json +{ + "name": "Puppet Development Kit (Community)", + "dockerFile": "Dockerfile", + "customizations": { + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "bash", + } + } + }, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "puppet.puppet-vscode", + "shopify.ruby-lsp" + ] + } + } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pdk --version", } ``` - - - diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cdd65d22..1f495df3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,17 +1,19 @@ { - "name": "Puppet Development Kit (Community)", - "dockerFile": "Dockerfile", - - "settings": { - "terminal.integrated.profiles.linux": { - "bash": { - "path": "bash" - } - } - }, - - "extensions": [ - "puppet.puppet-vscode", - "rebornix.Ruby" - ] + "name": "Puppet Development Kit (Community)", + "dockerFile": "Dockerfile", + "customizations": { + "vscode": { + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "bash" + } + } + }, + "extensions": [ + "puppet.puppet-vscode", + "shopify.ruby-lsp" + ] + } + } } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 2f1e4f73..c99cb6cf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ "puppet.puppet-vscode", - "rebornix.Ruby" + "shopify.ruby-lsp" ] }