Skip to content

Commit d4fe76f

Browse files
authored
fix: Incorrect contract path in "Go to" reply from copy/paste error in previous PR (#1865)
1 parent 06edda4 commit d4fe76f

File tree

1 file changed

+2
-2
lines changed
  • components/clarity-lsp/src/common

1 file changed

+2
-2
lines changed

components/clarity-lsp/src/common/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,13 @@ impl EditorState {
382382
{
383383
let public_definitions = get_public_function_definitions(expressions);
384384
return Some(Location {
385-
uri: contract_location.try_into().ok()?,
385+
uri: definition_contract_location.try_into().ok()?,
386386
range: *public_definitions.get(function_name)?,
387387
});
388388
};
389389

390390
Some(Location {
391-
uri: contract_location.try_into().ok()?,
391+
uri: definition_contract_location.try_into().ok()?,
392392
range: *protocol
393393
.contracts
394394
.get(definition_contract_location)?

0 commit comments

Comments
 (0)