You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Automatic LSP configuration for Copilot CLI (#74) (#84)
* feat: Automatic LSP configuration for Copilot CLI (#74)
Automatically configure Language Server Protocol (LSP) servers in container
images so Copilot CLI gets code intelligence out of the box.
- Add lsp-typescript snippet: installs typescript-language-server for all images
- Add lsp-csharp snippet: installs csharp-ls for dotnet images with .NET 10 SDK
(csharp-ls v0.22.0 only ships net10.0 TFM, so dotnet-8/9 excluded)
- Add lsp-rust snippet: adds rust-analyzer via rustup for rust images
- Add lsp-golang snippet: installs gopls for golang images
- Each snippet writes a config fragment to /etc/copilot/lsp-config.d/
- Entrypoint merges fragments into ~/.copilot/lsp-config.json at startup
(skipped if user provides their own)
- Update images.json and regenerate all Dockerfiles
Closes#74
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: GitButler <gitbutler@gitbutler.com>
* fix: Pin LSP server versions and add error handling
Address PR review feedback:
- Add ARG for typescript, typescript-language-server versions (default: latest)
- Add ARG for csharp-ls version (default: latest)
- Add ARG for gopls version (default: latest)
- Use --tool-path for csharp-ls instead of -g + symlink
- Add try/catch per LSP config fragment in entrypoint to prevent
malformed JSON from bricking container startup
- Regenerate all Dockerfiles
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: GitButler <gitbutler@gitbutler.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: GitButler <gitbutler@gitbutler.com>
0 commit comments