Replies: 1 comment
|
PnP support for this is included in Yarn's generated TypeScript SDK. The current SDK generator wraps tsserver, enables the PnP loader, and explicitly turns on TypeScript's allowLocalPluginLoads because plugins otherwise get resolved relative to the global TypeScript installation. Try generating the SDK with yarn dlx @yarnpkg/sdks base, ensure the plugin is a dependency of the project, and configure typescript-language-server with --tsserver-path .yarn/sdks/typescript/bin/tsserver. Launching the system/global tsserver bypasses the PnP wrapper. The editor docs also show the generated tsserver path for LSP clients. Refs: current SDK generator and Editor SDK docs. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to set up integration between
tsserverandeslintin order for linting to show up in my IDE viatypescript-language-server. This involves adding the following line totsconfig.json:However, while this works when running outside of Yarn, when running inside of Yarn (via the version the
sdkspackage ships), it no longer works. Runningstraceseems to indicate that while a standardtsserverbinary attempts to search for the package innode_modules, Yarn doesn't do it at all. Two questions:All reactions