leonardssh / vscord

😎 Fully customizable VS Code extension to get Discord Rich Presence integration.
https://marketplace.visualstudio.com/items?itemName=LeonardSSH.vscord
MIT License
519 stars 106 forks source link

Display info about (rustlang) modules? #201

Open mikkelens opened 1 year ago

mikkelens commented 1 year ago

I'm interested in whether it would be possible to show what module I am currently working in (rust modules work similar to C# namespaces etc.), as opposed to only displaying what file I am editing.

mikkelens commented 1 year ago

Ideally the rich presence window in discord would show it similar to how you access them in rust/cargo projects, between the vscode folder/workspace and action info, as in between "In aoc2022 - 1 problem found" and "Working on day_9.rs:21:80" could be something like "Under crate::day_9::tests", where 'tests' is the bottom-most module. I understand if this is way beyond of the scope of the file & extension based approach of this extension, since I imagine it would require quite specific understanding of rust/cargo crate semantics and using editing context more specific than "file" and "cursor position", I just want to know what the consensus on this is.

xhayper commented 1 year ago

This is gonna require a total rework of the extension