Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quicker access to package information #267

Open
jpassaro opened this issue Apr 5, 2022 · 1 comment
Open

Quicker access to package information #267

jpassaro opened this issue Apr 5, 2022 · 1 comment

Comments

@jpassaro
Copy link

jpassaro commented Apr 5, 2022

Is your feature request related to a problem? Please describe.

With this code:

import cats.data._

val regions = NonEmptyList.one("eu")

if I look at the hover data on NonEmptyList, it is not immediately apparent where the class comes from.

Describe the solution you'd like

I'd like an option, such as the one that shows implicit references and conversions, that augments the hover information with the fully qualified name of the symbol being inspected. For example in my example it would show something like

Fully qualified name:
  cats.data.NonEmptyList

or

Fully qualified name:
  cats.data.NonEmptyList$

or if I hovered the method:

Fully qualified name:
cats.data.NonEmptyList.one

It would also be really cool to have a feature that shows you in the hover where the symbol is defined, for example path to the source file on disk or within a particular jar.

Describe alternatives you've considered

This information obviously can be found by navigating to the definition or finding it in a tree view. It would be ergonomically useful to have that information without adding to the navigation stack.

Additional contex

Relates to #266 as a request for richer hover information

Search terms

fully qualified package name source path

@ckipp01
Copy link
Member

ckipp01 commented Apr 6, 2022

Thanks for the request @jpassaro! Just to be sure, is this what you're seeing in the hover?

Screenshot 2022-04-06 at 09 53 26

object NonEmptyList: cats.data is quite close to what you're suggesting, so I just want to ensure you're seeing that.

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

No branches or pull requests

2 participants