LSP-typescript icon indicating copy to clipboard operation
LSP-typescript copied to clipboard

How to use project's TypeScript's version

Open gxanshu opened this issue 7 months ago • 1 comments

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.

image

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"
  }
}

gxanshu avatar Jun 29 '24 04:06 gxanshu