neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

Feature request: Support for TS 5.0 #434

Open sevenc-nanashi opened 1 year ago

sevenc-nanashi commented 1 year ago

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

Could you update to support them? Thanks.

image

yaegassy commented 1 year ago

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 commented 1 year ago

ping @chemzqm @fannheyward

sevenc-nanashi commented 1 year ago

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

fannheyward commented 1 year ago

https://github.com/neoclide/coc-tsserver/pull/427

fannheyward commented 8 months ago

This can be closed as it's already supported.