Adding helper for not declared variables/functions #31844
Replies: 2 comments
-
Also for undeclared function will be helpful. |
Beta Was this translation helpful? Give feedback.
-
That's not what Zed editor can do, as it barely knows what a language is: it might capture certain variables in ast (based on tree-sitter queries that might be incomplete) but has no clue how to do a semantic analysis (to detect undeclared things) and no clue what the types are and how to use these. For example, Rust language "knowledge" for Zed is https://github.com/zed-industries/zed/tree/main/crates/languages/src/rust The rest of the language knowledge, including the requested features, come out of language servers: e.g. rust-analyzer is able to do something like that already via code actions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When you have an undeclared variable, the editor can declare it for you.
That's really common thing.
Beta Was this translation helpful? Give feedback.
All reactions