|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/ruby |
| 3 | +{ |
| 4 | + "name": "Teckel", |
| 5 | + "dockerFile": "Dockerfile", |
| 6 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 7 | + // "image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bullseye" |
| 8 | + |
| 9 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 10 | + |
| 11 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 12 | + // "features": {}, |
| 13 | + |
| 14 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 15 | + // "forwardPorts": [], |
| 16 | + |
| 17 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 18 | + "postCreateCommand": "bundle install", |
| 19 | + |
| 20 | + "shutdownAction": "stopContainer", |
| 21 | + |
| 22 | + // Configure tool-specific properties. |
| 23 | + "customizations": { |
| 24 | + "vscode": { |
| 25 | + "extensions": [ |
| 26 | + "shopify.ruby-extensions-pack" |
| 27 | + ], |
| 28 | + "settings": { |
| 29 | + "[ruby]": { |
| 30 | + "editor.defaultFormatter": "Shopify.ruby-lsp", // Use the Ruby LSP as the default formatter |
| 31 | + "editor.formatOnSave": true, // Format files automatically when saving |
| 32 | + "editor.tabSize": 2, // Use 2 spaces for indentation |
| 33 | + "editor.insertSpaces": true, // Use spaces and not tabs for indentation |
| 34 | + "editor.semanticHighlighting.enabled": true, // Enable semantic highlighting |
| 35 | + "editor.formatOnType": true // Enable formatting while typing |
| 36 | + }, |
| 37 | + "rubyLsp.addonSettings": {}, |
| 38 | + "rubyLsp.bundleGemfile": ".devcontainer/Gemfile", |
| 39 | + // "rubyLsp.rubyExecutablePath": "chruby-exec ruby", |
| 40 | + "rubyLsp.enabledFeatures": { |
| 41 | + "codeActions": true, |
| 42 | + "codeLens": true, |
| 43 | + "completion": true, |
| 44 | + "definition": true, |
| 45 | + "diagnostics": true, |
| 46 | + "documentHighlights": true, |
| 47 | + "documentLink": true, |
| 48 | + "documentSymbols": true, |
| 49 | + "foldingRanges": true, |
| 50 | + "formatting": true, |
| 51 | + "hover": true, |
| 52 | + "inlayHint": true, |
| 53 | + "onTypeFormatting": true, |
| 54 | + "selectionRanges": true, |
| 55 | + "semanticHighlighting": true, |
| 56 | + "signatureHelp": true, |
| 57 | + "typeHierarchy": true, |
| 58 | + "workspaceSymbol": true |
| 59 | + }, |
| 60 | + "rubyLsp.formatter": "standard", |
| 61 | + "rubyLsp.linters": [ |
| 62 | + "standard" |
| 63 | + ], |
| 64 | + "rubyLsp.featureFlags": { |
| 65 | + "all": true |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + |
| 71 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 72 | + // "remoteUser": "root" |
| 73 | + "remoteUser": "vscode" |
| 74 | +} |
0 commit comments