-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] owl-vision: vscode extension initial commit
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.
- Loading branch information
1 parent
acbe316
commit 57b190f
Showing
17 changed files
with
6,552 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/naming-convention": "warn", | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/test/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
src/** | ||
.gitignore | ||
.yarnrc | ||
vsc-extension-quickstart.md | ||
**/tsconfig.json | ||
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts | ||
**/*.vsix | ||
scripts/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Change Log | ||
|
||
All notable changes to the "owl-vision" extension will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
|
||
## [Unreleased] [0.0.1] - 2023-03-10 | ||
|
||
- Initial release | ||
|
||
### Added | ||
|
||
- Owl templates syntax highlight in xml files | ||
- `Find Template` Command - Finds the template file of the currently selected element. | ||
- `Find Component` Command - Finds the selected component definition. | ||
- `Switch` Command - Finds the corresponding template or component file depending on the current file. | ||
- `Switch Besides` Command - Finds the corresponding template or component file depending on the current file and opens it besides. | ||
- `Owl Documentation` Sidebar - A webview which allows easly searching through the owl's documentation from github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 🦉 Owl Vision 🕶️ | ||
|
||
Owl Vision is an extension for the amazing [Owl framework](https://github.com/odoo/owl) that complements your templates with beautiful colors and allows you to more easily navigate between components and templates. | ||
|
||
This extension also adds a small Component snippet to make your create beautiful components as fast as possible! | ||
|
||
## 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. | ||
|
||
## Extension Settings | ||
|
||
This extension contributes the following 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. |
Oops, something went wrong.