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
49.57k stars 3.04k forks source link

Don't work "Code Actions" in vue files #10245

Open klyuk88 opened 7 months ago

klyuk88 commented 7 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

After clicking on Code Actions in the Vue files, nothing happens. This works only in TS files.

Environment

Zed Preview 0.130.1 Vue 3 + Vite project

If applicable, add mockups / screenshots to help explain present your vision of the feature

Снимок экрана 2024-04-07 в 10 11 42

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

JosephTLyons commented 7 months ago

Hey @klyuk88 - I'm not a vue dev, should the code actions here be the same ones as delivered by the ts/js languge server (tsserver)?

klyuk88 commented 7 months ago

Yes, for example in nvim, webstorm, vscode Code Actions works in vue files as well as in ts files.

chungweileong94 commented 5 months ago

This feels related/similar to #10786. Basically the code actions (or even code formatted) stop working randomly, it happens quite often in TS/JS, where we often need an extra LSP like Vue, Biome, etc. So far it never really happened for Rust or Python development, so I guess it's most likely a multi-LSPs problem.