Add cross-language auto-suggest feature for package dependencies #22847
Replies: 4 comments
-
Would love to see this! Specifically for Rust and NodeJS. Maybe one last thing before I can fully move over from NeoVim 😊 ✨ |
Beta Was this translation helpful? Give feedback.
-
Just like the dependi extension on vscode, very useful, would like to see that coming |
Beta Was this translation helpful? Give feedback.
-
Been doing some thinking and proof of concept coding on this because I miss the autocompletion from IntelliJ in Zed. The current solution is to have multiple LSPs running, however, the suggestions from them tend to conflict with each other. Right now At the same time, we're unlikely to have the LSP for the config file format have functionality for each ecosystem. Instead, I think it might make sense to allow delegation between LSPs. Rather than have LSPs proxy (how would the LSP know if user wants to run a LSP with specific settings?), the LSP should respond that it suggests package completion. And then the user runs LSPs (which could be rolled into vtsls and rust-analyzer) to execute that command. Overview
It's very doable, but it requires a few different players (taplo, Zed, optionally rust-analyzer too) to implement some extensions to LSP - so I'm not sure how feasible this approach is. The alternative is to have a custom LSP Right now, my needs are mostly met by running my custom fork of taplo which contains |
Beta Was this translation helpful? Give feedback.
-
I implemented it for rust: |
Beta Was this translation helpful? Give feedback.
-
Check for existing issues
Describe the feature
I would love if someone implemented an auto-suggest feature for package dependencies across multiple programming languages. This feature would significantly improve the developer experience when working with various projects, particularly in managing dependencies in files like
Cargo.toml
for Rust,package.json
for JavaScript/Node.js,requirements.txt
for Python, and similar dependency management files in other languagesNote
It also doesn't have to be limited to rust crates, python dependencies, or nodejs packages either. It would be nice to have different languages supported as well.
Current behavior:
Proposed feature:
Package Version Auto-suggest:
Package Name Auto-suggest:
Benefits:
Quality of Life Improvements:
If applicable, add mockups / screenshots to help present your vision of the feature
Beta Was this translation helpful? Give feedback.
All reactions