Project Zomboid VSCode Syntax ExtensionThis VS Code extension provides comprehensive support for Project Zomboid's scripts, also known as ZedScripts, including syntax highlighting, auto-formatting, and diagnostics for items, recipes, and other script blocks. This extension is a fork of pz-syntax-extension with an almost complete rewrite and many added features, notably the usage of a common data repository.
FeaturesZedScripts
TranslationScripts
Usage
The extension automatically downloads the latest script data from the pz-scripts-data repository and caches it for 12 hours, which it will fetch once more after this time. If it doesn't manage to fetch this data, it will fall back to the bundled data with the extension, which may get outdated until the next update. You can fetch data manually by running the command "ZedScripts: Force fetch Scripts Data" from the Command Palette (Ctrl + Shift + P). This won't directly update the diagnostics (due to a bug to fix, see [issue #2](https://github.com/SirDoggyJvla/ZedScripts/issues/2)), but you can simply start typing a single character to trigger an update. ConfigurationBy default the Project Zomboid directory is ContributingWant to contribute to the project ? Feel free to do so ! You can also help by providing descriptions and data for scripts in the pz-scripts-data repository. The repository relies on a pre-commit hook to update automatically the singular JSON data file for scripts. To use it, do the following:
This pre-commit hook will make a copy of the singular JSON file from the submodule repository pz-scripts-data into the LicenseThis project is licensed under the MIT License. See the LICENSE file for details. |

