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

fix: support Typescript 5

Open AlexanderArvidsson opened this issue 1 year ago • 2 comments

Updates the plugin to work with Typescript 5. Most likely not backwards compatible with Typescript 4, I have not tried it. The biggest change is the consolidation of tsserverlibrary and typescript libraries, and the removal of project wide resolveModuleNames (they are deprecated anyway). It now relies on the language server host to resolve the twind DTS file.

Typescript 5 is stricter, so some parts of the code had to be updated with proper typing.

Solves https://github.com/tw-in-js/typescript-plugin/issues/21, https://github.com/tw-in-js/vscode-twind-intellisense/issues/24, https://github.com/tw-in-js/vscode-twind-intellisense/issues/22, https://github.com/tw-in-js/vscode-twind-intellisense/issues/23

I read that you plan to rework this plugin to use your new intellisense package, but until that is done this should suffice. You'll probably want to publish the current plugin as a v4 version, but that's entirely up to you!

AlexanderArvidsson avatar Jul 19 '24 18:07 AlexanderArvidsson

This is a separate VSCode Twind intellisense extension that I developed, which only supports v1. It is still a work in progress. If you're interested, feel free to check it out.

xlboy avatar Aug 11 '24 13:08 xlboy

This is a separate VSCode Twind intellisense extension that I developed, which only supports v1. It is still a work in progress. If you're interested, feel free to check it out.

Thanks, but I'm actually not using VS Code. A Typescript plugin (in my eyes) is always superior to any editor-specific plugin due to the fact it's agnostic, so it can be used with any editor. Personally, I would push this plugin due to that, rather than a VS Code plugin.

AlexanderArvidsson avatar Aug 11 '24 17:08 AlexanderArvidsson