sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin
MIT License
138 stars 11 forks source link

Is `vue-tsc` supported? #259

Open silverwind opened 4 days ago

silverwind commented 4 days ago

tsc can not resolve imports for .vue files from .ts, and there exists a patched tsc called vue-tsc which fixes that. Is there a way to get LSP-typescript to use vue-tsc? Ideally on a per-project basis.

Also see https://vuejs.org/guide/typescript/overview#overview for reference.

rchl commented 4 days ago

That's not exactly how it works. There exists a Vue plugin for Typescript which can be used with LSP-typescript. The https://github.com/sublimelsp/LSP-vue/issues/130 might not give a step by step instructions but it should be clear enough on how to enable that plugin (that comes with LSP-vue).

silverwind commented 4 days ago

Thanks, I will try that later. My understanding is that LSP-vue is for .vue files and LSP-typescript is for .ts, so that's why I've been coming to this repo.