Setup SPM VSCode extension
In order to improve the development experience when working with SPM
language, we've prepared a Visual Studio Code extension.
Extension can be found here.
Or you can find it by searching SPM
in Visual Studio Code's extensions.
Features of this Extension
- Syntax highlight
- Code snippets - init, package, using and @
- Definition referencing
- Syntax and semantic code validation
- Code completion
Building and Run the extension
Run the Debug Extension and Python configuration form VS Code. That should build and debug the extension in host window.
If you just want to build you can run the build task in VS Code (ctrl+shift+B).
Debugging
To debug both TypeScript and Python code use Debug Extension and Python debug config. This is the recommended way. Also, when stopping, be sure to stop both the Typescript, and Python debug sessions. Otherwise, it may not reconnect to the python session.
To debug only TypeScript code, use Debug Extension debug config.
To debug a already running server or in production server, use Python Attach, and select the process that is running lsp_server.py.