This project welcomes contributions and suggestions. Contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant the rights to use your contribution.
When you submit a pull request, a CLA bot will determine whether you need to sign a CLA. Simply follow the instructions provided.
To get this project run:
git clone --recurse-submodules https://github.com/shader-slang/slang-vscode-extensionFirst you need to get certain prerequisite files to run the project.
- Fork this repository
- Manually run the
Build Dependenciesworkflow from the Actions tab of your fork - Download the artifacts from the workflow run
This should produce the following files:
slang-wasm.jsslang-wasm.d.tsslang-wasm.worker.jsslang-wasm.worker.d.tsslang-wasm.node.jsslang-wasm.node.d.tsspirv-tools.jsspirv-tools.d.tsspirv-tools.worker.jsspirv-tools.worker.d.tsspirv-tools.node.jsspirv-tools.node.d.ts
Move them into the media directory.
- Run
npm installin this folder. This installs all necessary npm modules for all builds and builds playground libraries - Open VS Code on this folder.
- Press Ctrl+Shift+B to compile the client and server.
- Switch to the Debug viewlet.
- Select
Run Web ExtensionorRun Native Extensionfrom the drop down. - Run the launch config.
You can also run and debug the extension in a browser
npm run chrome- Use browser dev tools to set breakpoints
Use git submodule update --remote --merge to update the slang-playground submodule.