
<strong>VSCode extension and LSP implementation for the SourcePawn programming language written in Rust</strong>
<a href="https://github.com/Sarrus1/sourcepawn-studio/releases/">
<img
src="https://img.shields.io/visual-studio-marketplace/v/Sarrus.sourcepawn-vscode?include_prereleases"
/>
</a>
<a href="https://github.com/Sarrus1/sourcepawn-studio/releases/latest">
<img
src="https://img.shields.io/visual-studio-marketplace/i/Sarrus.sourcepawn-vscode"
/>
</a>
<a href="https://github.com/Sarrus1/sourcepawn-studio/releases/latest">
<img
src="https://img.shields.io/visual-studio-marketplace/d/Sarrus.sourcepawn-vscode"
/>
</a>
<a href="https://github.com/Sarrus1/sourcepawn-studio/actions/workflows/ci.yml">
<img
alt="CI status"
src="https://github.com/Sarrus1/sourcepawn-studio/actions/workflows/ci.yml/badge.svg"
/>
</a>
<img alt="GitHub" src="https://img.shields.io/github/license/Sarrus1/sourcepawn-studio">
<img alt="Showcase" src="https://raw.githubusercontent.com/Sarrus1/sourcepawn-studio/main/images/showcase-1.gif">
| Feature | Status |
|---|---|
| Completion | ✅ |
| Go To Definition | ✅ |
| Find References | ✅ |
| Hover | ✅ |
| Rename | ✅ |
| Semantic Highlighting | ✅ |
| Document Symbols | ✅ |
| Call Hierarchy | ✅ |
| Signature Help | ✅ |
| Reference | ✅ |
| Diagnostics | ✅ |
The Language Server is compatible with any text editor that implements the Language Server Protocol.
For ease of use with Visual Studio Code, the extension bundles a binary of the Language Server for each major platform and OS. You can download it from the marketplace here.
Partial support for AMXXPawn is implemented through the --amxxpawn-mode flag. The only difference between, the "SourcePawn mode" and the "AMXXPawn mode" boils down to what file extension the server will be looking for (.sp vs .sma).
A VSCode extension exists which bundles the server with the correct launch flags. You can find it here.
Please follow the Quick Start on the website.
Thanks for considering this. But please remember that all of this wouldn't be possible without the Alliedmodders community. If you wish to make a donation for this community, you can make it here. If you prefer to make a donation to me for this project, you can buy me a coffee
Pull requests and suggestions are welcome.
To run the Language Server, with the VSCode extension, from source, do the following:
cd editors/code && npm i.f5 and select the Run Extension (Debug Build) launch task in the prompt. This will compile the Language Server server from the source code and package the VSCode extension's source code.Attach To Server or Win Attach To Server on Windows and typing sourcepawn-studio in the prompt.$ claude mcp add sourcepawn-studio \
-- python -m otcore.mcp_server <graph>