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

Support goto definition across files #571

Open
Marwes opened this issue Aug 25, 2022 · 0 comments
Open

Support goto definition across files #571

Marwes opened this issue Aug 25, 2022 · 0 comments

Comments

@Marwes
Copy link
Contributor

Marwes commented Aug 25, 2022

Goto definition currently only works within a single file, it would be great if it would work across files. Specifically I am thinking of using it to go to standard library functions.

testing.diff
        // ^ Goto jumps to `testing.flux:diff` in the standard library 

The semantic analysis does assign Symbol values which should be unique across files which ought to contain enough information to find the right location However, as the standard library is embedded in the binary we may need to display the source code in a special buffer somehow, or allow users to configure where the standard library is so the LSP can link to it.

@Marwes Marwes changed the title Supper goto definition across files Support goto definition across files Aug 25, 2022
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

1 participant