zed icon indicating copy to clipboard operation
zed copied to clipboard

Don't work "Code Actions" in vue files

Open klyuk88 opened this issue 2 years ago • 3 comments

Check for existing issues

  • [X] Completed

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

klyuk88 avatar Apr 07 '24 07:04 klyuk88

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)?

JosephTLyons avatar Apr 08 '24 04:04 JosephTLyons

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

klyuk88 avatar Apr 08 '24 09:04 klyuk88

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.

chungweileong94 avatar May 15 '24 11:05 chungweileong94