spd
A VSCode extension for editing Minecraft datapacks.
Usage
// TODO
Structure of Source Code
.
├── client // Language Client
│ ├── src
│ │ ├── test // Tests for Language Client
│ │ └── extension.ts // Language Client entry point
├── package.json // The extension manifest.
└── server // Language Server
└── src
├── test // Tests for Language Server
└── server.ts // Language Server entry point
Building
- Run
npm installin this folder. This installs all necessary npm modules in both the client and server folder.- If it warns
Cannot find module 'vscode', runnpm run postinstallmanually. (See Microsoft/vscode#2810
)
- If it warns
- Open VS Code in this folder.
- Execute
Run Build Taskcommand (defaults toCtrl + Shift + B) to compile the client and server.
Debugging
- Switch to the Debug viewlet (defaults to
Ctrl + Shift + D). - Select
Launch Clientfrom the drop down. - Run the lauch config.
- If you want to debug the server as well, use the launch configuration
Attach to Server
- If you want to debug the server as well, use the launch configuration
Testing
- Execute
Run Test Taskcommand (defaults toCtrl + R T) to test both server and client.