A VSCode extension for Koishi Development.
The extension is still Work in Progress currently.
- Package.json schema for "koishi" field
- YAML validation for
koishi.ymlfile - Field, enum and plugin name completion in
koishi.yml - Hover documentation for config fields and plugins
- Go to definition from a plugin name to its
package.json - JavaScript / TypeScript code snippets
Beyond structural validation, the extension provides language features for
koishi.yml:
- Completion — field names at the current level, enum values on the value
side of a field (
prefixMode,i18n.output), and plugin names inside thepluginsblock. - Plugin names — a bundled snapshot of the official plugins is merged with whatever is installed in your workspace, so third-party plugins appear too. Hovering shows the npm package name and the services a plugin provides or requires.
- Hover — the description, type, allowed values and numeric constraints declared in the schema.
- Go to definition — from a plugin name to that package's
package.jsoninnode_modules.
This extension is licensed under the AGPL-3.0 license.
