You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 6, 2026. It is now read-only.
The language server currently copies type definitions from an old version of LWC. This was originally added to facilitate autocompletion in JavaScript projects. However, in modern VS Code, if a project has lwc in its node_modules, then autocompletion is provided out of the box. Any project that has unit tests for components will necessarily have a local copy of lwc, so copying the type definitions is unnecessary.
Additionally, for TypeScript projects, there are significant incompatibilities between the bundled version (v2.37.3) and the latest version (v8.0.0). For a project using the latest version, a user with the VS Code extension installed will need to have experimentalDecorators: true in their tsconfig.json, while a user with a different IDE will need to have experimentalDecorators: false. Since that is not possible, and to remove the need for the language server to keep up with LWC versions, the default behavior should change to using the locally installed version of LWC from a user's project.
The language server currently copies type definitions from an old version of LWC. This was originally added to facilitate autocompletion in JavaScript projects. However, in modern VS Code, if a project has
lwcin itsnode_modules, then autocompletion is provided out of the box. Any project that has unit tests for components will necessarily have a local copy oflwc, so copying the type definitions is unnecessary.Additionally, for TypeScript projects, there are significant incompatibilities between the bundled version (v2.37.3) and the latest version (v8.0.0). For a project using the latest version, a user with the VS Code extension installed will need to have
experimentalDecorators: truein their tsconfig.json, while a user with a different IDE will need to haveexperimentalDecorators: false. Since that is not possible, and to remove the need for the language server to keep up with LWC versions, the default behavior should change to using the locally installed version of LWC from a user's project.