andywang425 / vscode-scriptmonkey

Userscript language support extension for vscode.
https://marketplace.visualstudio.com/items?itemName=andywang.vscode-scriptmonkey
MIT License
23 stars 3 forks source link

Typescript Support #22

Closed NilsGke closed 2 months ago

NilsGke commented 2 months ago

Hey, i'd love to use this extension but with typescript. Is there a way to make it possible?

andywang425 commented 2 months ago

Implementing metadata highlight in typescript files should be easy, but other (completion, hover hints) features may require interaction with typescript language service or building our own language service, which will be a hard work.

I position this extension as a small tool for viewing userscript code and writing simple userscripts, hence it only supports javascript.

If you prefer writing userscripts in typescript, maybe you can try this https://github.com/lisonge/vite-plugin-monkey.

NilsGke commented 2 months ago

If you prefer writing userscripts in typescript, maybe you can try this https://github.com/lisonge/vite-plugin-monkey.

Thats what i ended up using - thank you