Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Symbol not shown up #105

Open
chrisduong opened this issue Mar 28, 2017 · 5 comments
Open

Symbol not shown up #105

chrisduong opened this issue Mar 28, 2017 · 5 comments

Comments

@chrisduong
Copy link

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
Copy link
Owner

zargony commented Jun 27, 2017

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
Copy link
Author

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

@KalitaAlexey
Copy link
Collaborator

KalitaAlexey commented Jun 28, 2017

@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
Copy link
Owner

zargony commented Jun 28, 2017

@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
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants