Skip to content

Commit

Permalink
[IMP] owl-vision: Autocomplete and added missing owl directives
Browse files Browse the repository at this point in the history
This commit adds basic autocomplete in  xml files. This includes autocompletion
for elements, components, props, attributes, and javascript expressions.

It also:
- Adds "Go To Definition" support for props and javascript expressions in xml
- Support for the following directives: t-att, t-model, t-tag, t-debug, t-log
- Fixes t-else syntax highlight to be non-dynamic as the attribute value
should be empty
  • Loading branch information
BastienFafchamps committed Jun 11, 2024
1 parent 2eb151c commit 0ddba65
Show file tree
Hide file tree
Showing 12 changed files with 6,660 additions and 5,590 deletions.
22 changes: 22 additions & 0 deletions tools/owl-vision/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ All notable changes to the "owl-vision" extension will be documented in this fil

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [0.1.0] - 2024-11-06

### Added

- Basic autocomplete in xml files. This includes autocompletion for elements, components,
props, attributes, and javascript expressions.

The current implementation, while relatively simple, has a couple of drawbacks:
- Javascript imports are not resolved by the xml autocomplete, this means that it does not
understand the types of imported functions or objects. That said, I've added custom support
for frequently used Owl imports, namely `useState` and `useRef`. You can add more in
the settings if needed.
- The autocomplete is limited to templates directly linked to components, sub-templates
used via t-call will not get autocompletion as no component/context can be bound to them.

- "Go To Definition" support for props and javascript expressions in xml
- Support for the following directives: t-att, t-model, t-tag, t-debug, t-log

### Fixed

- Changed t-else syntax highlight from dynamic to static attribute

## [0.0.2] - 2023-2-11

### Added
Expand Down
Loading

0 comments on commit 0ddba65

Please sign in to comment.