Closed jpradelle closed 1 year ago
@jpradelle - this would require a dedicated plugin for Lit, as adding JS imports is not a generic problems and each framework has different requirements. Here is related YT issue: https://youtrack.jetbrains.com/issue/WEB-32640/lit-HTML-support
Hi, It would be awesome to have IDE javascript ES6 import support from its HTML usage. When an HTML element is defined in web-types with
source
property havingmodule
andsymbol
, IDE should have enough information to build JS ES6 import.Currently when I right click on a web-types defined HTML tag > Go To > Declaration or Usages, it goes to corresponding class, so link to class is properly defined.
Exemple project for demo:
In proposal I would like to have an insert JS import proposal.
When clicked it would add
import './demo-to-be-imported.js'
at top of js file.package.json:
demo-to-be-imported.js
demo-for-import.js
web-types.js