nushell / vscode-nushell-lang

A Nushell grammar for Visual Studio Code with IDE support
https://www.nushell.sh/
MIT License
122 stars 27 forks source link

Go to definition for use statements #152

Open gar1t opened 1 year ago

gar1t commented 1 year ago

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 commented 1 year ago

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.