feat(lsp): add Python language server support

- Add pyright-langserver for Python LSP support
- Add environment variable overrides for Python LSP configuration
- Install git in Docker image (required for gopls dependency resolution)
- Optimize Go binary build with -s -w linker flags for smaller image
- Add GOPROXY configuration for faster dependency downloads
- Update Node.js installation method with GPG key verification
- Add entrypoint script to auto-create go.mod in workspace
- Add /app/logs volume for log persistence
This commit is contained in:
2026-02-16 00:44:57 +08:00
parent 00b0d825d8
commit 5d5a094196
4 changed files with 66 additions and 24 deletions

View File

@@ -56,6 +56,14 @@
"languageId": "java",
"command": "/opt/jdtls/bin/jdtls",
"args": []
},
{
"language": "python",
"languageId": "python",
"command": "pyright-langserver",
"args": [
"--stdio"
]
}
]
}