mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
166cada8ff
Owl Vision is a vscode extension that improves owl developpement by adding
syntax highlights in templates and commands to easly navigate between
components and templates.
It also adds a Component snippet.
Commands:
* `Owl Vision: Find Template`:
- If the cursor is on a template name, finds the corresponding template.
- If the cursor is on a component, finds the template of the selected component.
* `Owl Vision: Find Component`: Finds the selected component definition.
* `Owl Vision: Switch`: Finds the corresponding template or component
depending on the current file.
* `Owl Vision: Switch Besides`: Finds the corresponding template or component
depending on the current file and opens it besides.
Settings:
* `owl-vision.js.include`: Javascript files to include in search.
* `owl-vision.js.exclude`: Javascript files to exclude in search.
* `owl-vision.xml.include`: XML files to include in search.
* `owl-vision.xml.exclude`: XML files to exclude in search.
35 lines
958 B
JSON
35 lines
958 B
JSON
{
|
|
"injectionSelector": "L:source.js -comment",
|
|
"scopeName": "owl.markup.inline",
|
|
"patterns": [
|
|
{
|
|
"include": "#markup"
|
|
}
|
|
],
|
|
"repository": {
|
|
"markup": {
|
|
"begin": "\\s+(markup)(`)",
|
|
"contentName": "meta.embedded.block.html",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "entity.name.function.tagged-template.js owl-markup"
|
|
},
|
|
"2": {
|
|
"name": "punctuation.definition.string.template.begin.js string.template.js"
|
|
}
|
|
},
|
|
"end": "(`)",
|
|
"endCaptures": {
|
|
"1": {
|
|
"name": "punctuation.definition.string.template.end.js string.template.js"
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"include": "text.html.basic"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|