LSP-typescript
LSP-typescript copied to clipboard
How to use project's TypeScript's version
Currently, when using the LSP-Typescript package, it defaults to the latest TypeScript version (5.5.2). I'm working on a monorepo that contains different packages, each with different TypeScript versions.
I want to use the TypeScript version specific to whichever project I am currently working on.
I tried setting the tsserver
path manually, and it works, but I don't think it's a good idea.
{
"initializationOptions": {
"tsserver.path": "/home/anshu/code/my-project/apps/frontend/node_modules/typescript/bin/tsserver"
}
}