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

Resolve non-source file labels #205

Merged
merged 8 commits into from
Apr 19, 2024
Merged

Conversation

withered-magic
Copy link
Owner

@withered-magic withered-magic commented Apr 17, 2024

Fixes: #203

This PR adds Go to Definition functionality for non-source-file targets, e.g. //crates/starpls. This works by finding the first function call with a name argument, a heuristic also used by starlark-rust and bazel-lsp.

TODO:

  • Cleanup docs
  • Identify refactoring opportunities
  • Verify behavior for BUILD files, e.g. already opened vs not

@withered-magic withered-magic merged commit efa3a3a into main Apr 19, 2024
2 checks passed
@withered-magic withered-magic deleted the resolve-non-source-labels branch April 19, 2024 09:21
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

Successfully merging this pull request may close these issues.

Goto definition for non-source file labels
1 participant