zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.84k stars 2.68k forks source link

In .vue files don't work autocomplete #14723

Open klyuk88 opened 1 month ago

klyuk88 commented 1 month ago

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

fazulk commented 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.

maxdeviant commented 1 month ago

@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.

danulqua commented 1 month ago

@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 commented 1 month ago

@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.

fazulk commented 1 month ago

@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" }]

danulqua commented 1 month ago

Is this repo private? I get a 404 when I try to view it.

@maxdeviant should be okay now

klyuk88 commented 1 month ago

@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.

fazulk commented 1 month ago

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?

vanarok commented 1 month ago

"Go to definition" works for component props, but not for the components themselves in the template tag.

owaisahmad-dev commented 3 weeks ago

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

danulqua commented 3 weeks ago

Agree, very important feature that doesn't work

owaisahmad-dev commented 3 weeks ago

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

fazulk commented 2 weeks ago

would say this can be closed thanks to https://github.com/zed-industries/zed/pull/16654