Skip to content

Metadata of Oracle JET components for code completion in Visual Studio Code (1.30+)

Notifications You must be signed in to change notification settings

ladariha/OJET-4-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OJET-4-Code

Metadata of Oracle JET components for code completion in Visual Studio Code (1.31+)

How to use it?

Starting with Visual Studio Code 1.31, there is (at this moment) experimental support for custom elemements/attributes (see [https://code.visualstudio.com/updates/v1_31#_html-and-css-custom-data-support) for details)

This repository contains file dist/tags.json that contains OJET components and their attributes:

  1. Download this JSON file to your PC
  2. Open VS Code settings and reference this file in following way:
    "html.experimental.customData": [
        "/path/to/downloaded/file/tags.json"
    ]
  1. Optionally restart VS
  2. In HTML code, try code completion for OJET components and attributes

How to get refreshed list of components?

  1. Clone this repo
  2. Run command
    $ cd OJET-4-Code
    $ npm start
  1. This will create a new file OJET-4-Code/dist/tags.json with up to date definitions

About

Metadata of Oracle JET components for code completion in Visual Studio Code (1.30+)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published