Skip to content

fix: Incorrect contract path in "Go to definition" reply from copy/paste error#1865

Merged
jbencin merged 1 commit intostx-labs:mainfrom
jbencin:fix/contract-location
Jun 18, 2025
Merged

fix: Incorrect contract path in "Go to definition" reply from copy/paste error#1865
jbencin merged 1 commit intostx-labs:mainfrom
jbencin:fix/contract-location

Conversation

@jbencin
Copy link
Contributor

@jbencin jbencin commented Jun 18, 2025

Description

Currently goto definition for contract-call? is broken. It takes you to the correct line/column, but always in the current file, not where it is actually defined. I broke this in #1859 due to copy/pasting the first instance of uri: contract_location.try_into().ok()?. The following ones should use a different variable (definition_contract_location)

@jbencin jbencin requested review from hugoclrd and tippenein June 18, 2025 17:39
@codecov
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
components/clarity-lsp/src/common/state.rs 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@hugoclrd hugoclrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@jbencin jbencin enabled auto-merge (squash) June 18, 2025 17:48
@jbencin jbencin merged commit d4fe76f into stx-labs:main Jun 18, 2025
25 checks passed
@jbencin jbencin deleted the fix/contract-location branch June 18, 2025 19:16
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