-
Have a tsconfig.json in the root
-
Rest should be automatic
-
Debugging: In the VSCode Output Panel look for
Aurelia v2
, there you should see how many components where picked up
-
+ --- root/
| + --- src/
| + --- tsconfig.json
You are able to configure root
, src
, and tsconfig.json
(cf. Minimal Setup)
-
root
Configs (expand)
"aurelia.aureliaProject": { "rootDirectory": { "type": "string", "description": "Provide a custom directory for the root." } },
-
src
You don't have to name this foldersrc
. Change it via theinclude
field below (as glob).Configs (expand)
```json "aurelia.aureliaProject": { "include": { "type": "array", "description": "Includes for your Aurelia Project", "default": ["src"] }, "exclude": { "type": "array", "description": "Exlcudes for your Aurelia Project", "default": [ "**/node_modules", "aurelia_project", "**/out", "**/build", "**/dist" ] } }, ```
-
tsconfig.json
Configs (expand)
"aurelia.pathToTsConfig": { "type": "string", "description": "Provide an absolute path to a tsconfig.json" }
-
Aurelia v2 compatible
- Tested against examples/realworld-advanced
-
Changes are now immediately available (no need to restart)
-
Completions
-
Object completions in View
-
Example
-
Possible limitations:
- Imported types do not work
- Thus, types from standard (typescript) lib will not complete either.
- Arrays do not work (eg.
myVar[0].
will not show completions)
- Imported types do not work
-
-
-
Definitions
- Now, Value Converter can be "go to definition"
- Limitation: Chained Value Converters only works for first one
- Now, Value Converter can be "go to definition"
-
Hover
mousedown.delegate
, and alike- Currently, you would need to type
mousedown
, and only after typing.
you would get completion fordelegate
- Currently, you would need to type
- Some diagnostics, eg.
- eg.
.one-way=""
is deprecated - casing
- eg.
- Aurelia Themes
- Au CLI commands
- .js support. (You would need a tsconfig.json file in the root, which would work then.)
Check out the Architecture document for a skeleton overview.
- This extension started as a clone from microsoft / vscode-extension-samples / lsp-embedded-language-service
- The "virtual completions" approach was inspired by Vetur Vetur docs