Open klyuk88 opened 1 month ago
Noticed the same thing, go to definition no longer working from within vue files. Would like to see a full setup up zed actually working with vue and TS.
@klyuk88 Could you try this with v0.1.0 of the Vue extension and see if that improves anything?
Also, if anyone is able to reproduce the issue in a project that they're able to share with the Zed team, it would be very helpful in diagnosing the issue.
@maxdeviant here is a repo where the problems can be reproduced: https://github.com/danulqua/vue-universities-parser
Not working:
And, maybe, some other issues which doesn't exists, for example, in VSCode/WebStorm.
@maxdeviant here is a repo where the problems can be reproduced: https://github.com/danulqua/vue-universities-parser
Is this repo private? I get a 404 when I try to view it.
@maxdeviant you can try this one, basic boilerplate from vue
https://github.com/fazulk/vue-zed-demo
Besides go to definition and auto complete not working, I had add this to tsconfig.json for .ts files to recognize .vue files, as well as installing the package. I'm not sure why vscode doesn't need this.
"plugins": [{ "name": "@vue/typescript-plugin" }]
Is this repo private? I get a 404 when I try to view it.
@maxdeviant should be okay now
@m
@maxdeviant here is a repo where the problems can be reproduced: https://github.com/danulqua/vue-universities-parser
Is this repo private? I get a 404 when I try to view it.
with v0.1.0
Not working yet, also with v0.1.0 vue extension.
Just following up - From what I can tell "Reveal Definition" works correctly, but "Go to Definition" is broken.
Its broken when trying to jump to another file, and its broken when trying to go to a definition within the same file.
@maxdeviant If I was to debug this, where in Zed src is the best place to look?
"Go to definition" works for component props, but not for the components themselves in the template tag.
Hey, also facing the same issue, it's the only blocker left for me to switch to zed, my current job is a lot of vue.js and typescript
Agree, very important feature that doesn't work
Hey, also facing the same issue, it's the only blocker left for me to switch to zed, my current job is a lot of vue.js and typescript
BTW, was also facing this issue in VS Code, reverted to a previous version of the Vue.js extension, and it works fine now. Maybe it's a bug on vue.js LSP side. Don't see a way how I can do that in Zed
would say this can be closed thanks to https://github.com/zed-industries/zed/pull/16654
Check for existing issues
Describe the bug / provide steps to reproduce it
Autocomplete does not work in VUE files. It only works in TS files.
Environment
Zed 0.144.3 MacOS 14.5 M1 Pro Vue 3 + Vite project
If applicable, add mockups / screenshots to help explain present your vision of the feature
https://github.com/user-attachments/assets/db0dfc1d-d1c9-47d2-b440-ad342b7da2b2
If applicable, attach your Zed.log file to this issue.
Zed.log