coc-tsserver icon indicating copy to clipboard operation
coc-tsserver copied to clipboard

Feature request: Support for TS 5.0

Open sevenc-nanashi opened this issue 1 year ago • 6 comments

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

Could you update to support them? Thanks.

image

sevenc-nanashi avatar Jun 12 '23 21:06 sevenc-nanashi

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 avatar Jun 13 '23 08:06 yaegassy

ping @chemzqm @fannheyward

yaegassy avatar Jun 13 '23 08:06 yaegassy

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

sevenc-nanashi avatar Jun 13 '23 08:06 sevenc-nanashi

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

fannheyward avatar Jun 13 '23 10:06 fannheyward

This can be closed as it's already supported.

fannheyward avatar Nov 06 '23 06:11 fannheyward