All Projects → aurelia → Vscode Extension

aurelia / Vscode Extension

Licence: mit
An Aurelia extension for the VS Code editor that provides HTML syntax highlighting, statement completion, and CLI integration.

Programming Languages

typescript
32286 projects

Aurelia

License: MIT CircleCI TypeScript VS Code Marketplace Downloads VS Code Marketplace Installs

Aurelia VSCode Extension

Table of contents

1. Usage

  • 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

      Example.png (expand)

      image

Minimal Setup

+ --- root/
|      + --- src/
|      + --- tsconfig.json

Configuration

Project

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 folder src. Change it via the include 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"
      }
    

2. Features

New

  • Aurelia v2 compatible

  • Changes are now immediately available (no need to restart)

  • Completions

    • Object completions in View

      • Example

        Completions.gif (expand)

        completions.gif

      • 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)
  • Definitions

    • Now, Value Converter can be "go to definition"
      • Limitation: Chained Value Converters only works for first one
  • Hover

    Hover.gif (expand)

    au-hover-5

Missing (from v1)

  • mousedown.delegate, and alike
    • Currently, you would need to type mousedown, and only after typing . you would get completion for delegate
  • Some diagnostics, eg.
    • eg. .one-way="" is deprecated
    • casing
  • Aurelia Themes
  • Au CLI commands
  • .js support. (You would need a tsconfig.json file in the root, which would work then.)

3. More Info

Check out the Architecture document for a skeleton overview.

Acknowledgment

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].