Skip to content

targos/adonis-vscode-extension

 
 

Repository files navigation

💻 Official AdonisJS extension for VSCode

Features

  • Use all Adonis Assembler commands ( make:* )
  • Migrate and seed your database ( db:*, migration:* )
  • View your routes within VSCode
  • Open and see docs within VSCode
  • .adonisrc.json file validation with JSON Schema
  • Edge Support, syntax highlighting + formatting
  • Multiple Workspaces and Monorepos support
  • Edge and AdonisJS Snippets
  • Go To Controller
  • Go To View

Ace commands

Launch ace commands directly from VScode. Files created by adonis/assembler are automatically opened after their creation.

List Routes

List all routes in your project from VSCode and filter them.

Documentations

Consult and search the Adonis and Japa documentation directly from VSCode.

JSON Schema for .adonisrc

Route controller completion + Go To

Autocompletion for the name and handler of the controllers, alt+click to open the file, and the docblock documentation of the method that is displayed in hover.

Edge support

Syntax highlighting, auto-completion of the tags that includes partials/components/layouts, alt+click to open an included file, many snippets... No automatic formatting for the moment

Known Issues

Below is the list of unsupported features (for the moment), feel free to make a PR if you want them to be delivered faster:

Contributing

  • See contributing guide
  • Clone the project and open it in VS Code
  • Run npm install
  • Press F5 to open a new VSCode window with your extension loaded.
  • You can relaunch the extension from the debug toolbar after changing code in src/extension.ts.
  • You can also reload (Ctrl+R or Cmd+R on Mac) the VS Code window with your extension to load your changes.

Packages

No packages published

Languages

  • TypeScript 98.3%
  • JavaScript 1.7%