LWC unable to detect the correct usage

Issue #2324 resolved
Zlatko Petrov created an issue

The plugin is unable to resolve the method usage in a simple LWC component. When I ctrl+click on the method, it resolves to some external plugin library (\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\223.8617.44\plugins\javascript-impl\jsLanguageServicesImpl\external\lib.dom.d.ts)

I’ve attached a simple demo video to show the behavior.
I’ve tried the “Invalidate Caches” method as well as regenerating the full offline table.

WebStorm 2022.3.2
Build #WS-223.8617.44, built on January 24, 2023
Licensed to zlatko petrov
Subscription is active until July 9, 2023.
Runtime version: 17.0.5+1-b653.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 16000M
Cores: 32
Registry:
ide.balloon.shadow.size=0

Non-Bundled Plugins:
com.markskelton.one-dark-theme (5.7.4)
com.vermouthx.idea (1.14.2)
com.mallowigi (85.1.0)
com.illuminatedcloud2.intellij (2.2.5.7)
izhangzhihao.rainbow.brackets (2023.1.3)

Comments (3)

  1. Scott Wells repo owner

    FYI, this seems to be a behavior (perhaps even bug) in the base JetBrains IDE and its default resolution of standard function names in these braced expressions. I’ve logged an issue with JetBrains and will need to see what they say before a solution will be available:

    https://youtrack.jetbrains.com/issue/WEB-60763

  2. Log in to comment