Skip to content

Repository files navigation

logo

Koishi Dev

Visual Studio Marketplace Version Open VSX Version

A VSCode extension for Koishi Development.

Features

The extension is still Work in Progress currently.

  • Package.json schema for "koishi" field
  • YAML validation for koishi.yml file
  • 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

koishi.yml IntelliSense

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 the plugins block.
  • 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.json in node_modules.

License

This extension is licensed under the AGPL-3.0 license.

Releases

Packages

Used by

Contributors

Languages