Related:
Problem
WebComponent offers a JavaScript API to define HTML tags / attributes. We want people to get completion, diagnostics and other language features that's already available to the HTML server.
Approach
We plan to:
- Define a JSON schema for tag/attribute definition JSON file (like dts for TS projects)
- Allow user to specify a list of such tag/attribute JSON files as a setting
However, there is currently no way to auto-generate such a JSON file from user-authored JS files. In the short term, these files are most likely to be hand-written. In the long term, we hope we can standardize such a format and find a way to auto-generate these JSON files with the WebComponents community.
Supported Features
Working Out of the box
- DocumentHighlight
- DocumentSymbol
- Folding
Plan to Support
What we'll ship for November iteration:
Hard to Support
We do want these features, but there is no clear way to implement these features.
- Jump to definition: Jumping to definition on
<my-tag> should go to the JS file that defines such a class.
- Find References / Rename: Requires project understanding, but our HTML support is single file.
No plan to Support
- Signature Help: It does not make sense when Completion offers snippets.
- QuickFix: No sensible quick fix that we can offer.
Related:
Problem
WebComponent offers a JavaScript API to define HTML tags / attributes. We want people to get completion, diagnostics and other language features that's already available to the HTML server.
Approach
We plan to:
However, there is currently no way to auto-generate such a JSON file from user-authored JS files. In the short term, these files are most likely to be hand-written. In the long term, we hope we can standardize such a format and find a way to auto-generate these JSON files with the WebComponents community.
Supported Features
Working Out of the box
Plan to Support
What we'll ship for November iteration:
- [ ] Diagnostics:- Required attributes not included- Attribute value is not one of attribute'senumvalue- [ ] TextMate Grammar: Color web component tags/attributes differentlyHard to Support
We do want these features, but there is no clear way to implement these features.
<my-tag>should go to the JS file that defines such a class.No plan to Support