zargony / atom-language-rust

Rust language support in Atom - LOOKING FOR MAINTAINER, see #144
MIT License
116 stars 33 forks source link

Symbol not shown up #105

Open chrisduong opened 7 years ago

chrisduong commented 7 years ago

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

zargony commented 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)

chrisduong commented 7 years ago

I wish I could help but I'm busy at the moment. 😔

KalitaAlexey commented 7 years ago

@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?

zargony commented 7 years ago

@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)

KalitaAlexey commented 7 years ago

@zargony, The extension supports two modes: Legacy Mode and RLS Mode. Symbols in Legacy Mode are get with rustsym.