Wind Language by DZRED
Wind language support for desktop VS Code. Open a .wnd file to get syntax
highlighting and a file icon. The extension does not bundle the Wind compiler.
- Highlights Wind declarations, types, and string interpolation, including
target freestanding, extern func, export func, and ptr[T].
- With the compiler installed, shows errors for unsaved edits in Problems,
with Wind error codes and locations in the current file or an imported module.
Setup
- Build
wind from the Wind source repository.
On Linux, run make from the repository root.
- Open your project folder. Only trust the workspace if you trust its contents
and the compiler it will run.
- If the compiler is not found in the project or on
PATH, set
Wind: Compiler Path (wind.compilerPath) to the executable.
For Freestanding diagnostics, use a compiler build that supports the mode and
put target freestanding at the top of the entry file. The extension uses the
compiler's default target profile; it does not pass --target.
Live checks use the unsaved editor text and resolve imports next to the actual
file. Imported modules are read from disk, so save a changed module before
checking files that import it. Checks do not run GCC or the program. Check
failures such as a missing or outdated compiler appear in the Wind output channel.
Highlighting also works in Restricted Mode, where the extension does not run
the compiler.
See the Wind language reference
and report issues on GitHub.
Development
From the repository root, after building Wind:
node wind-vscode/tests/diagnostics.test.js ./wind
The highlighting test uses vscode-textmate and vscode-oniguruma. To run
it without adding test dependencies to the extension:
deps=$(mktemp -d)
npm install --prefix "$deps" vscode-textmate@9.3.2 vscode-oniguruma@2.0.1
NODE_PATH="$deps/node_modules" node wind-vscode/tests/highlighting.test.js