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

Feature request: Support for TS 5.0 #434

Open
sevenc-nanashi opened this issue Jun 12, 2023 · 6 comments
Open

Feature request: Support for TS 5.0 #434

sevenc-nanashi opened this issue Jun 12, 2023 · 6 comments

Comments

@sevenc-nanashi
Copy link

sevenc-nanashi commented Jun 12, 2023

Currently tsserver cannot parse TS5.0 feature, such as const type parameters.

Could you update to support them? Thanks.

image

@yaegassy
Copy link
Contributor

yaegassy commented Jun 13, 2023

By default, coc-tsserver uses the bundled TypeScript. It seems that your issue is arising because the bundled TypeScript is version 4.9. Please try configuring it to use the TypeScript version specific to your project. "tsserver.useLocalTsdk": true or etc...

@yaegassy
Copy link
Contributor

ping @chemzqm @fannheyward

@sevenc-nanashi
Copy link
Author

Resolved with tsserver.chooseVersion, thank you for support.
I keep this Issue open, please close this Issue if it's not needed.

@fannheyward
Copy link
Member

#427

@fannheyward
Copy link
Member

This can be closed as it's already supported.

@LumaKernel
Copy link

Thanks.
I felt it seems little confusing. How about making tsserver.useLocalTsdk defaulting to true?

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

4 participants