Official Visual Studio Code extension for the RPy (Python-to-Luau) compiler.
This extension provides robust Language Server Protocol (LSP) features while writing modern Python for Roblox, directly accelerating your development workflow.
Features
Real-time Diagnostics: Immediate syntax and type analysis errors inline.
Hover Information: See inferred Luau and Roblox types when hovering over code.
Code Completion: Rich dot-access completions for Roblox APIs (e.g. game.Workspace).
Go to Definition: CTRL+Click to jump directly to where elements were defined.
Requirements
RPy Compiler: You must have the RPy Python compiler installed globally on your machine (via pip install rpy-roblox or running the package locally).
The rpy CLI command must be available in your system PATH.
Extension Settings
This extension contributes the following settings:
rpy.binaryPath: If rpy is not in your system PATH, you can provide the absolute path to the rpy executable here. (e.g. C:\\Paths\\To\\rpy.exe or /usr/local/bin/rpy).
Troubleshooting
Server fails to start: Ensure the rpy lsp command works in your terminal. If you installed it in a virtual environment, ensure your rpy.binaryPath points to the rpy script inside that virtual environment.
Extension Commands: You can restart an unresponsive server by pressing Ctrl+Shift+P and typing RPy: Restart Server.