Skip to content

Go to definition for use statements #152

New issue

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

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

Already on GitHub? # to your account

Open
gar1t opened this issue Sep 7, 2023 · 1 comment
Open

Go to definition for use statements #152

gar1t opened this issue Sep 7, 2023 · 1 comment

Comments

@gar1t
Copy link

gar1t commented Sep 7, 2023

I see that "Go to definition" works for used commands, but not for the the use statement.

For example:

use ../hello.nu hello

def main [] {
  hello
}

Go to definition works on the hello call in the main function but not on the use statement on the first line.

Am I missing something in a configuration/setting or is this the current intended behavior?

@fdncred
Copy link
Contributor

fdncred commented Sep 7, 2023

This sounds like a bug or just an unimplemented feature and would probably need to be a changed in the nushell rust code in ide.rs.

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

No branches or pull requests

2 participants