Title: Language Service: integration with custom-elements.json specification · Issue #36893 · angular/angular · GitHub
Open Graph Title: Language Service: integration with custom-elements.json specification · Issue #36893 · angular/angular
X Title: Language Service: integration with custom-elements.json specification · Issue #36893 · angular/angular
Description: 🚀 feature request While working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events. Note: VSCode currently supports for custom element attributes with html file extension. Relevant...
Open Graph Description: 🚀 feature request While working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events. Note: VSCode currently supports for custom element attri...
X Description: 🚀 feature request While working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events. Note: VSCode currently supports for custom element attri...
Opengraph URL: https://github.com/angular/angular/issues/36893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Language Service: integration with custom-elements.json specification","articleBody":"# 🚀 feature request\r\n\r\nWhile working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events.\r\n\r\nNote: VSCode currently supports for custom element attributes with html file extension.\r\n\r\n### Relevant Package\r\n\r\nThis feature request is for @angular/language-service\r\n\r\n### Description\r\n\r\nGiven the following `custom-elements.json` file:\r\n\r\n\u003cdetails>\u003csummary>\u003ccode>custom-elements.json\u003c/code>\u003c/summary>\r\n\u003cp>\r\n\r\n```json\r\n{\r\n \"version\": 1.2,\r\n \"tags\": [\r\n {\r\n \"name\": \"demo-wc-card\",\r\n \"description\": \"This is a container looking like a card with a back and front side you can switch\",\r\n \"attributes\": [\r\n {\r\n \"name\": \"header\",\r\n \"description\": \"Header message\",\r\n \"type\": \"string\",\r\n \"defaultValue\": \"Your message\"\r\n }\r\n ],\r\n \"properties\": [\r\n {\r\n \"name\": \"backSide\",\r\n \"description\": \"Indicates that the back of the card is shown\",\r\n \"type\": \"boolean\"\r\n }\r\n ]\r\n }\r\n ]\r\n}\r\n```\r\n\u003c/p>\r\n\u003c/details>\r\n\r\nNo suggestions are provided for property `backSide`:\r\n\r\n\u003cimg width=\"448\" alt=\"Screen Shot 2020-05-01 at 7 12 47 PM\" src=\"https://user-images.githubusercontent.com/1571918/80852758-dffba400-8bdf-11ea-9d74-7017c4ea5d4e.png\">\r\n\r\nIdeally, the property description and type would be shown.\r\n\r\n---\r\n\r\nHere's an example of a functioning attribute in VSCode. This works due to VSCode's HTML Language Service honoring the custom-elements.json spec.\r\n\r\n\u003cimg width=\"454\" alt=\"Screen Shot 2020-05-01 at 7 12 30 PM\" src=\"https://user-images.githubusercontent.com/1571918/80852754-dbcf8680-8bdf-11ea-93de-b7ce11ea4c05.png\">\r\n\r\nHere's an example repository demoing the VSCode integration: https://github.com/microsoft/vscode-custom-data/tree/master/samples/helloworld.\r\n\r\nFor information on the specification format, see https://github.com/w3c/webcomponents/issues/776.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nFirst-class support for custom elements properties and events.\r\n\r\n### Describe alternatives you've considered\r\n\r\nThis sort of editor support is novel, no known alternative options exist.\r\n","author":{"url":"https://github.com/petermikitsh","@type":"Person","name":"petermikitsh"},"datePublished":"2020-05-02T02:24:35Z","url":"https://github.com/angular/angular/issues/36893"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f3c9ee5f-00fb-753c-e3de-37e29617040a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE48:1D20B7:29D6D52:350DA7B:6B01D977 |
| html-safe-nonce | c4658b6cb31d651a08fb7ae510948ca52362cff57ec47fa96b6c46cf86c01329 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTQ4OjFEMjBCNzoyOUQ2RDUyOjM1MERBN0I6NkIwMUQ5NzciLCJ2aXNpdG9yX2lkIjoiMzk4NTg4OTc1MTY4NDIwOTAxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 776148f3065df80b98d3eb54e4116798e6e21386b30a093ed43fc22a6334f9a6 |
| hovercard-subject-tag | issue:611089362 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/36893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f97f320ef80afdadaf76d01504cfbf8c1d60c41d9c0cc34459a665edc202863/angular/angular/issues/36893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f97f320ef80afdadaf76d01504cfbf8c1d60c41d9c0cc34459a665edc202863/angular/angular/issues/36893 |
| og:image:alt | 🚀 feature request While working in Angular templates, it would be valuable to have autocompletion for custom elements properties and events. Note: VSCode currently supports for custom element attri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | petermikitsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width