Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use project's TypeScript's version #252

Open
gxanshu opened this issue Jun 29, 2024 · 1 comment
Open

How to use project's TypeScript's version #252

gxanshu opened this issue Jun 29, 2024 · 1 comment

Comments

@gxanshu
Copy link

gxanshu commented Jun 29, 2024

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
Copy link
Author

gxanshu commented Jun 29, 2024

I'm on monorepo btw. opening sub folder as in sublime text works but i want to open my full repo in sublime text and then want to work on sub folder that contains different typescript versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant