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

fix: go to definition for local orbs were not working #274

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

JulesFaucherre
Copy link
Contributor

Jira: None

Description

Go to definition in local orb, targeting other local orb elements was opening a folder instead of making the Go to definition.

Implementation details

The issue is actually that local orbs don't know which yaml they're coming from, so when asked for definition, they give <empty string> and the editor thus try opening the actual directory.
To fix that, the URI field has been added to local orbs and it is passed when making Go to definition.

How to validate

Tests have been added but you can try this yourself by declaring a local orb with executor(s), command(s) and job(s). Have jobs use the local orb's executors or commands and try making go to definition on those to make sure it point to the right point.

@JulesFaucherre JulesFaucherre changed the title Fix go to definition for local orbs fix: go to definition for local orbs were not working Feb 6, 2024
Base automatically changed from DEVEX-1217 to main February 6, 2024 15:20
@JulesFaucherre JulesFaucherre merged commit b089c7b into main Feb 6, 2024
9 checks passed
@JulesFaucherre JulesFaucherre deleted the local-orbs-go-to-definition branch February 6, 2024 16:19
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.

2 participants