Releases: Julien-R44/adonis-vscode-extension
v1.3.0
- Fix a bug where Controller Methods were displayed as autocomplete suggestions in places where they should not be.
- Added the
env:add
command. Can be executed through the command palette or the tree view.
Full Changelog: v1.2.1...v1.3.0
Inertia suggestions for React/Svelte
What's Changed
- Implement react & svelte suggestions & linker for intertia by @pixelmund in #33
New Contributors
- @pixelmund made their first contribution in #33
Full Changelog: v1.2.0...v1.2.1
V6 support
Official release of the extension. All previous versions ( 1.1.x ) were pre-releases only
This version supports Adonis 5 and Adonis 6. If you ever want to continue supporting both via the extension, then make sure to keep this version. Future ones will only support Adonis 6..
Note also that this extension removes all Edge related features. Edge now has its own extension: https://github.com/edge-js/edge-vscode
Read the previous changelog for more information on the changes in this new release
Remove Edge related stuff
This version remove all Edge related features :
- Autocompletion for views/components in .edge and .ts files
- Go to template on click on .edge and .ts files
- Syntax highlighting + language configuration for Edge
- Edge snippets
- And others
We have ported all these features to the Edge standalone extension here:
https://marketplace.visualstudio.com/items?itemName=AdonisJS.vscode-edge
Minor fixes
Fixes
- Some edge tags were not recognised by the extension:
inject
,let
, andeval
. - RC file parsing did not work when some property keys were defined using identifiers instead of string literals
Support for `adonisrc.ts` file
For version 6, we'll allow users to define the rc file via an adonisrc.ts
file. This means defining options via typescript rather than JSON
This release adds two things:
- Previously, to detect when to activate the extension, we relied on the presence of an
adonisrc.json
file. If this file was found, the folder was considered to be an Adonis project. Now, theadonisrc.ts
file is also taken into account for that. - We also parse the
adonisrc.ts
file using AST, in order to extract certain properties required for the extension to works correctly
Bugfix
Custom views directory
Changes
-
Added support for custom views directory. With Adonis projects, you can define a custom folder that will holds your template like :
{ "directories": { "views": "templates" }, }
this is now handled by the extension. your links and autocompletion will work correctly
-
Fixed bug that highlighted
@!section
and@slot
as custom components
Near the end
Changes
- Fix components-as-tags detection. Extension was detecting email litteral strings or even some TS decorators as components.
- Re-implement commands tree view that also works with Adonis 6
- Add a new "Open command file" in the commands tree view. An icon will be displayed next to each item that is a custom command and will allow you to open the related file
we should be feature-complete for the next stable release now. all we need to do now is fix the introduced bugs
Improvements
Improvements
-
Added a new pretty TreeView that list all adonis projects in the current workspace. This allows to select one as a current active project. When one project is select, that means all tree views are now scoped to this project. For example, the routes tree view will only show routes for this project. Commands tree view will also only show commands for this project. Ace commands like
make:controller
will be executed on this project etc.
-
Add "Create view" code action. If your code is referencing a missing view, then this code action will be proposed. It will create and open the missing view for you.
- Now we are displaying a pretty welcome view when no Adonis project has been found in your workspace instead of displaying empty views.
- Fixed a bug that caused the full absolute path of the open file to be displayed when clicking on a route in the treeview. This led to multiple duplicate entries in the editor history.