VSCode Intellisense for LWC (JavaScript & HTML) on Core #5833
dseverson-salesforce
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When developing Lightning Web Components (JavaScript, HTML & CSS) specifically On-Core (but Off-Core too)...
How can core developers get Intellisense working in VSCode?? (ie: Auto-Suggestion, Go to Definition, Go to Type Definition, etc.) [See Screenshots]
The typical imports I see are these 4 types:
lwc
- the actual LWC library - this should be Intellisense-able I would think.lightning/<path>
- the docs say these "contain resources that don't change and are universal to all orgs" ... so maybe Intellisense-able?@salesforce/<path>
- the docs say these "add functionality to Lightning web components at runtime" ... so I assume Intellisense is not possible due to their dynamic nature?? The module resolution for these seem complex (reference).namespace/<path>
(ex:scrt/<path>
) - these "namespaces" live under the "modules" folder in a component on core. These should be Intellisense-able, but would probably require some particular jsconfig.json file configuration for resolution hinting. Not only that, but it's convention to name the "main" component file the same as the containing folder; for example,conversationBody/conversationBody.js
rather than JavaScript's conventionalindex.js
file as default.*.html
- in the LWC html templates/files, it would be nice to have Intellisense (auto-suggestion/completion) when typing out the element tags and also the ability to right-click and "Go to Definition" which should take us to the corresponding html template.ANY of the above Intellisense would be helpful! Sometimes it feels like I'm "coding blind" without VSCode's Intellisense.
Here's screenshots of what I see when I hovering over and right click on variables (nothing). None of the right-click options (Go to Definition, Got to ..., etc.) work.
Beta Was this translation helpful? Give feedback.
All reactions