Skip to content

Releases: Julien-R44/adonis-vscode-extension

Bug fixes

22 Jun 13:32
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release

Small bugfixes

  • Include #24 PR
  • Some internal tags were considered to be components, so the extension tried to provide links to them. Like inject if elseif. Fixed

Full Changelog: 1.1.3...1.1.4

Cool features

14 Jun 18:11
Compare
Choose a tag to compare
Cool features Pre-release
Pre-release

Inertia support

Added Inertia support. So basically link provider + completion. Exactly as for edge templates.

By default, the extension assumes that your inertia pages are located in resources/js/pages/**/*. If this is not the case, you can modify this with the adonisjs.inertia.pagesDirectory vscode config.

image

Component as tag support

Autocompletion + links wasn't supported before for component as tags. now it is!

image

Red wavy lines

For all link providers, i.e. inertia + controller strings + views in .edge or .ts. If your linked document is not found (which is probably an error on your part), a small red line is now displayed below it. Example:

image

@end wrongly parsed

Also fixed that little syntax highlighting bug in edge. the @end was never caught

Pre-release for v6

11 Jun 20:23
Compare
Choose a tag to compare
Pre-release for v6 Pre-release
Pre-release

This is a pre-release supporting AdonisJS 6. The update also maintains compatibility with AdonisJS 5.x. Given its pre-release status, you can probably expect few bugs.

This is a quite early pre-release, so I wouldn't recommend installing it just yet

Configuration Changes

The following configuration options have been removed:

  • All customizable regular expressions. Useless + added unnecessary complexity.
  • Customizable extensions/directories. Same as above
  • maxLinesCounts. Again same as above

Code Refactoring

Significant code refactoring was done to make it dependency-free from vscode. Basically : if you write a file importing a 'vscode' module, you can't run it outside VSCode. That means it's making testing way more challenging and slow.

Now, much of the code is extracted into independent and "pure" modules that can be easily tested without vscode. This has allowed me to implement many more tests, and i am way more more confident in shipping next features.

With this substantial code update, some bugs may have slipped through. If you encounter any, please report them via an issue

Removed Features

The various "hover providers" have been removed. These displayed data when hovering over a controller magic string for example. As they were not particularly useful and contributed to code complexity, I decided to remove them. However, if these were helpful to you, please let me know via an issue, and I may consider reintroducing them in the future

New Features

  • Enhanced support for multiple workspaces, specifically for the Tree view of routes. A "select project" icon has been added, allowing you to switch between workspaces within this view.
  • The "Open in browser" feature has been removed when the route is not set to GET.

Next coming versions will mainly add new features.

Go to view in TS Files

31 Oct 21:59
Compare
Choose a tag to compare

Features

  • We can now Alt + click on a View method to go directly to the Edge file
    goview

  • Add db:seed command

  • Add db:wipe command

  • Add make:mailer command

Remove japa snippets

27 Sep 17:45
Compare
Choose a tag to compare

Japa snippets have been moved to the extension dedicated to Japa that you can download here :

https://marketplace.visualstudio.com/items?itemName=jripouteau.japa-vscode

Full Changelog: 0.7.0...0.8.0

Version 0.7.0

17 Sep 14:15
Compare
Choose a tag to compare

πŸš€ Enhancements

  • Add syntax highlighting for new @js tag (ee3df03)
  • Add first version of TestsExtractor (d2ce93d)
  • Add a CodeLens for each tests in the file (6bed418)
  • Launching commands on icon click (84bce4d)

🩹 Fixes

  • Run command in cmd.exe if windows (ccf99aa)

πŸ’… Refactors

  • Include brisk routes in tree view (507f7b6)
  • Replaced @poppinns/module-methods-extractor (e9b6a2b)
  • Rename ConfigWrapper to ExtConfig (9891255)
  • Remove tests code lens (c64d72b)

🏑 Chore

  • Update tsup config (2dccecb)
  • Add test script that executes electron and pure tests (992165e)
  • Update dependencies (a9d95c9)

Some goodies !

21 Aug 20:41
Compare
Choose a tag to compare

New Features

Run custom commands

You can now launch your custom commands directly from the activity bar, or from the palette command.
The extension will ask you, via prompts, the value to set for each argument and flag.

image

Re-design and some feature for the route tree view

  • The Tree View of the routes is now a bit more sexy. The route dots are colored according to the HTTP methods.

  • You can now also copy the links of the endpoints, or open them directly in your browser via a click on the icon on the right. Very useful especially for GET routes that render HTML.

  • You can also flatten the routes to ignore the groups.

image

Edge + VSCode's HTML Language Server

VSCode has just released a feature that allows us to integrate HTML server language features without having to write a complete server language.

https://twitter.com/julien_rpt/status/1561403307779915777

Thanks to this, we can now take advantage of all the features of the HTML server language, directly from our Edge files !

Misc

  • Added node ace serve as a new command runnable from the command palette and activity bar.
  • Updated route grouping regex to also ignore /v1/xxxx like patterns

Changelog

πŸš€ Enhancements

  • More error handling on Routes Tree View (da0a3da)
  • Parse env and manifest file for each adonis projects in the workspace (a6c19cb)
  • Allow to copy url + open route in browser (f24412c)
  • Allow to flatten routes (7e70319)
  • Add colors to routes node items based on methods (cb332c8)
  • Add htmlLanguageParticipants for edge language (29e9da3)
  • Add node ace serve command (db7242e)
  • Update grouping regex (147d702)
  • Add way to run custom commands (9376c2e)
  • Display customs commands in activity bar (7ab695d)

🩹 Fixes

  • Make metaFiles optional in .adonisrc schema (6b9ce09)
  • Load activity bar view only if an Adonis project is in the workspace (a852ada)

πŸ’… Refactors

  • Extract Notifier class from BaseCommand (1f2cfbd)

Routes Tree View

20 Aug 22:08
Compare
Choose a tag to compare

Features

Added a new Tree view that display your routes. They are grouped by domains, then by common URL.
A click on a route redirects you directly to the associated controller method.

image

Refactor

  • migrated from webpack to tsup
  • migrated to a snake_case directory/filename structure.
  • migrated to my own eslint/typescript config. More strictness
  • migrated from glob to fast-glob
  • Reduced extension size by 60% by externalizing typescript dependency that was imported by @poppinss/module-methods-extractor

Full Changelog: 0.4.0...0.5.0

New commands and Activity Bar View

09 Jul 10:46
Compare
Choose a tag to compare

What's Changed

  • Add make:policy Command by @TheJltres in #8
  • Add make:suite command (8b1eea0)
  • Add make:factory command (3e1e310)
  • Can now generate factory along a model (5cc50d0)
  • Handle multiple domains on Routes command (2b8bd8e)
  • Add Adonis activity bar view (108f2b8)
    image

New Contributors

Full Changelog: 0.3.0...0.4.0

Version 0.3.0

05 May 19:46
Compare
Choose a tag to compare

πŸš€ Features

  • #5 Display Ace commands only when the extension is activated
  • e7b2ae8 Add "nodePath" VSCode setting that allows you to manually enter the path to a NodeJS executable
  • e2a3aac Add migration:run and migration:rollback to VSCode Commands palette, and added a runMigrationInBackground vscode setting
  • cad97e8 Add tests and testProviders to adonisrc json schema

πŸ› Fixes

  • a38b826 Configure command > package name not escaped
  • 3898b92 RunTest now runs in VSCode Terminal
  • c45a0b7 Replace edge dots separator by slashes
  • 454b2c6 Only display success message when set
  • 7a735f8 Run "typecheck" in foreground
  • c8f07a4 Re-use adonis terminal if already opened

πŸ“– Documentation

  • ccf3e6d Some note on configuration + snippets
  • 76c81b5 Add note about intellisense not opening while typing
  • e712cce Add runMigrationInBackground note

πŸ’… Refactors

  • 9554eb6 Use exec cwd instead of cd for executing background commands
  • 360c9a1 Rename Extension service class to ProjectFinder

Full Changelog: 0.2.0...0.3.0