lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

VSCode Lit Plugin: Does customHTMLData opition/config support a array of JSON files?

Open warrenbuckley opened this issue 1 year ago • 3 comments

Hi @runem We are using web-component-analyzer to generate the JSON format for VSCode Custom HTML Data.

When setting "lit-plugin.customHtmlData" in .vscode/settings.json it expects an object which is the JSON file contents itself. I was hoping it would work in the same way as the VSCode setting html.customData which is an array of paths to JSON files of this schema.

Is this possible to do this currently?

As we would love for completions for package/plugin development authors using our WebComponents to get completions when writing new WebComponents that are composed of the building blocks that we supply inside Lit's html tagged literal.

Any pointers or advice you can give would be fab.

Thank again for a great set of tools for the Web Component development community 🥰 Warren

warrenbuckley avatar Mar 23 '23 12:03 warrenbuckley

Was trying this settings since it was stated in the config-table.md, it is Supports arrays, objects and relative file paths but when trying on settings it only allow 'object'

https://github.com/runem/lit-analyzer/blob/9659154904fd2010de3749fc5e904e8c3dfe684b/docs/readme/config-table.md?plain=1#L13

arieffikhrie avatar Jun 27 '23 09:06 arieffikhrie

I noticed the same thing @arieffikhrie . Looks like the documentation doesn't match the implementation: incorrectTypeArray incorrectTypeString

tonjohn avatar Nov 08 '23 22:11 tonjohn

It looks like I have to copy/paste the config into the settings file in order to get this work. Is there another way to get this working with paths?

break-stuff avatar Jan 29 '24 19:01 break-stuff