fast icon indicating copy to clipboard operation
fast copied to clipboard

Add IntelliSense to Visual Studio for components

Open dotnetnoobie opened this issue 5 years ago • 3 comments

What feature are you requesting? Add IntelliSense to Visual Studio for components

What solution would be ideal for you? IntelliSense for the standard FAST out of the box components and standard html element attributes & events plus custom/third party components including custom attributes/properties & events

Also for child elements of components for example in fast-accordion element Visual Studio would know that it's child elements are fast-accordion-item and give a warning if a wrong component was used

Is there any additional context for your request? Currently there is no IntelliSense in Visual Studio for even standard attributes on components like "class" etc.

dotnetnoobie avatar Jul 08 '20 14:07 dotnetnoobie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 14:12 stale[bot]

@williamw2 This is related to the custom element analyzer work. We should find out if VS Code understands the custom-elements.json file and if not, see how we can translate to enable this.

EisenbergEffect avatar Mar 14 '22 16:03 EisenbergEffect

Is there any new status here? We have a design library written in FAST, but when importing it in other projects, VS Code has no knowledge of the web components in the library.

After browsing the Discord, I found some mentions of this, using Custom Elements Manifest. I tried using cem analyze --fast for generating a custom-elements.json, then referencing that file in the package.json of the library. I might have done something wrong, but I cannot get that to work. I cannot find any mentions of this in the official FAST docs either.

In the Discord, there were also someone with a working solution in SolidJS, but I'm not sure whether it would work in a project where the custom elements is inside a dependency. https://www.npmjs.com/package/custom-element-solidjs-integration

Anyone gotten intellisense to work for their design library written in FAST, in projects using that design library?

ThorFjelldalen avatar Sep 19 '23 07:09 ThorFjelldalen

Due to #6955 this would be more an issue for a library like https://github.com/microsoft/fluentui/tree/master/packages/web-components

janechu avatar May 28 '24 18:05 janechu