From 795a72140ab588acbf8b751f513d23415401ac90 Mon Sep 17 00:00:00 2001 From: "juliano.barbosa" Date: Wed, 15 Jan 2025 15:45:23 -0300 Subject: [PATCH] feat: updated devcontainer.json for lua developer Signed-off-by: juliano.barbosa --- .devcontainer/devcontainer.json | 54 +++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 653ca190..7f60f851 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,16 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { - "name": "Python 3", + "name": "Lua Development", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": true, + "installOhMyZsh": true, + "upgradePackages": true + } + }, "customizations": { "vscode": { "extensions": [ @@ -11,23 +18,32 @@ "GitHub.copilot-chat", "github.vscode-github-actions", "elagil.pre-commit-helper", - "saoudrizwan.claude-dev" - ] + "saoudrizwan.claude-dev", + "sumneko.lua", + "actboy168.lua-debug", + "yinfei.luahelper", + "keyring.Lua", + "trixnz.vscode-lua", + "eamodio.gitlens", + "mhutchie.git-graph", + "donjayamanne.githistory", + "fabiospampinato.vscode-git-history", + "pprice.better-merge", + "ryu1kn.partial-diff", + "moshfeu.compare-folders", + "editorconfig.editorconfig" + ], + "settings": { + "Lua.telemetry.enable": false, + "Lua.diagnostics.globals": ["vim"], + "Lua.workspace.library": [ + "${3rd}/love2d/library" + ], + "Lua.runtime.version": "LuaJIT", + "Lua.workspace.checkThirdParty": false + } } - } - - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - - // 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": "pip3 install --user -r requirements.txt", - - // Configure tool-specific properties. - // "customizations": {}, - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + }, + "postCreateCommand": "sudo apt-get update && sudo apt-get install -y build-essential lua5.3 lua5.3-dev luarocks && sudo luarocks install luacheck", + "remoteUser": "vscode" }