Open chrisduong opened 7 years ago
Unfortunately I don't know how the symbol extraction works in Atom. How does Atom get the list of symbols? Our grammar rules do apply entity.name.function.rust
to function names (like other grammars)
I wish I could help but I'm busy at the moment. 😔
@chrisduong, Symbols are available in VSCode. And a lot of other features: https://github.com/editor-rs/vscode-rust
@zargony, Since you and I use VSCode, I can advocate VSCode, can't I?
@KalitaAlexey Sure, I'm a big fan of VSCode myself. Afaik VSCode's Rust extension uses this syntax rules, but only for highlighting. Symbol extraction works via rls I guess?
I'm not sure how Atom gets symbols for Cmd-R. It could be possible that Atom just looks at text marked with some scope, in which case we'd do something wrong since it doesn't seem to work with Rust. But I think more likely there need to be something else that extracts symbols from the editor content (like some interfacing with rls)
@zargony, The extension supports two modes: Legacy Mode and RLS Mode. Symbols in Legacy Mode are get with rustsym.
Hi,
If I'm not mistaken. Atom Language plugin should define keywords for method/functions show that when I use plugin Symbol View with command "cmd+r", it will show the list of Rust symbols.
Thanks