Skip to content

GordonSmith/vscode-wit

Repository files navigation

logo Language extension for VS Code

This package complements bytecodealliance.wit-idl by adding an Antlr4 grammar, which (in time) will drive various language specific features.

The description of the WIT format can be found at: https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md

Features

  • Add dependy on bytecodealliance.wit-idl
  • Add Antlr4 grammar (Wit.g4)
  • "Quick" syntax checking (F7)
  • "Quick" syntax checking on open/save (optional behind config flag)
  • Web host support
  • Linting
  • Outline view
  • Hover help
  • Go to definition
  • Find all references
  • Code completion
  • Code folding
  • Pretty print
  • wit-bindgen integration
  • wasm-tools integration

Requirements

This extension has a dependency on bytecodealliance.wit-idl, which provides the syntax colouring.

Extension Settings

This extension contributes the following settings:

  • wit.syntaxCheckOnLoad: Enable/disable syntax check on load (defaults on).
  • wit.syntaxCheckOnSave: Enable/disable syntax check on save (defaults on).

Release Notes

See CHANGELOG.md for release notes.