Use latest Vue LSP and integrate with Typescript LSP
-
In my last PR, I added the Vue LSP (#1952).
-
Updates in this PR:
- Integrated changes from
@vue/language-tools v3. - Correctly wired Vue + TypeScript LSP so
.vuefiles report TypeScript errors. - Added
/src/lsp/vue.tsto isolate Vue complexity fromserver.tsandindex.ts.
If helpful, here's a minimal test I put together of what it takes to get Vue + Typescript working in isolation: https://gist.github.com/drevantonder/29f70c9629e9234866285c2dab98e021
- Integrated changes from
bumping this up! would be really great to have this merged. right now lsp support for .vue files is broken. @thdxr
@thdxr would love to know if/when we can get this merged (or closed if it needs to be).
It's currently a tad bit of friction for me to use opencode with Vue in having to use my dev version. (Its alright though, I'll live 😆)
In the meanwhile, in case it helps someone, I created a patch from this PR to quickly apply updates to dev: opencode-vue-lsp.patch
Just download and save the patch file, pull the latest dev, then do: git apply /path/to/opencode-vue-lsp.patch
Then, run OPENCODE_DRY=true bun run ./script/publish.ts and CTRL-C once the build is ready for your OS. I only made some minor changes to the publish script so that it doesn't mess with the version numbers.