scalameta/metabrowse

Search by symbol

olafurpg opened this issue · 4 comments

Related to #20. It would be nice if it was possible to search by "symbol", where a symbol is a definition such as a class/trait/object and maybe val/var/def.

jonas commented

Looking into this but will need help on how to parse the semanticdb into the editor's notion of SymbolKind especially how to lookup if a symbol is a member of a class.

We can add the denotation of a symbol. The denotation can tell us if the symbol is a trait/class/def/val/... https://github.com/scalameta/scalameta/blob/f7463f78227e092b5dab0a05667733b0a2b23952/scalameta/semantic/shared/src/main/scala/scala/meta/semantic/Flags.scala#L32 Need to figure out how to import semanticdb.proto definitions into metadoc.proto https://scalapb.github.io/faq.html#how-do-i-generate-scala-code-for-protos-from-another-jar

jonas commented

Fixed in #27