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
48.52k stars 2.9k forks source link

Show language version in status bar #9398

Open goldenratio opened 7 months ago

goldenratio commented 7 months ago

Check for existing issues

Describe the feature

Similar to Intellij IDEA, it will be nice to see language version in the status bar of the editor. (version is taking from project's package.json)

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

Zed: image

Intellij IDEA image

versecafe commented 7 months ago

@goldenratio I can't find a way to actually check what version of a given language is running but once found it's very easy to display, issue being active_language is just a string, and language_registry_version just refers to the registry as a whole not any given language

If anyone knows where the actual version can be pulled from I'd be happy to add the feature but it may not even be included anywhere

crates/language_selector/src/active_buffer_language.rs

let active_language_text = if let Some(active_language_text) = active_language {
    active_language_text.to_string()
} else {
    "Unknown".to_string()
};